mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-30 07:28:26 +01:00
Handle IllegalArgumentException thrown from openInputStream()
This commit is contained in:
parent
7c4f43c156
commit
6c4ff122ac
|
@ -818,7 +818,7 @@ public class DroidFish extends Activity
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
DroidFishApp.toast(R.string.failed_to_read_pgn_data, Toast.LENGTH_SHORT);
|
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);
|
DroidFishApp.toast(e.getMessage(), Toast.LENGTH_LONG);
|
||||||
}
|
}
|
||||||
return new Pair<>(pgnOrFen,filename);
|
return new Pair<>(pgnOrFen,filename);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user