Temporarily blocked ArrayIndexOutOfBoundsException when refreshing game downloads. It should not happen

This commit is contained in:
huangyuhui 2017-02-05 16:54:18 +08:00
parent 02d3bd36fe
commit ac66dfe476

View File

@ -113,7 +113,8 @@ public class GameDownloadPanel extends Page {
StrUtils.equalsOne(ver.type, "old_beta", "old_alpha", "release", "snapshot") ? C.i18n("versions." + ver.type) : ver.type }))
.regDone(SwingUtils.invokeLater(() -> {
lstDownloads.requestFocus();
model.removeRow(0);
if (model.getRowCount() > 0)
model.removeRow(0);
})).execute();
}