mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-07 12:16:45 +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();
|
gamePathShort = file.getName();
|
||||||
try {
|
try {
|
||||||
gamePathShort = gamePathShort.substring(0, gamePathShort.lastIndexOf('.'));
|
gamePathShort = gamePathShort.substring(0, gamePathShort.lastIndexOf('.'));
|
||||||
} catch (Exception e) {
|
} catch (IndexOutOfBoundsException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user