mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-07 03:56:12 +00:00
Catch a more specific exception in HistoryWrapper.java. The only possible exception that can be thrown here is IndexOutOfBoundsException.
This commit is contained in:
parent
1f6161b45e
commit
4718bc63af
@ -20,7 +20,7 @@ public final class HistoryWrapper implements IconAdapterItem {
|
||||
gamePathShort = file.getName();
|
||||
try {
|
||||
gamePathShort = gamePathShort.substring(0, gamePathShort.lastIndexOf('.'));
|
||||
} catch (Exception e) {
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user