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…
Reference in New Issue