Catch a more specific exception in HistoryWrapper.java. The only possible exception that can be thrown here is IndexOutOfBoundsException.

This commit is contained in:
Lioncash 2013-09-27 09:02:22 -04:00
parent 1f6161b45e
commit 4718bc63af

View File

@ -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) {
} }
} }