diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java index de3eed9..9c68649 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java @@ -818,7 +818,7 @@ public class DroidFish extends Activity } } catch (IOException e) { DroidFishApp.toast(R.string.failed_to_read_pgn_data, Toast.LENGTH_SHORT); - } catch (SecurityException e) { + } catch (SecurityException|IllegalArgumentException e) { DroidFishApp.toast(e.getMessage(), Toast.LENGTH_LONG); } return new Pair<>(pgnOrFen,filename);