Fixed NPE (Cleanup Task)

This commit is contained in:
Driftay 2019-09-08 17:30:04 -04:00
parent d554adfef5
commit e5a9b82bdf

View File

@ -31,7 +31,9 @@ public class CheckTask implements Runnable {
}
List<Long> remove = new ArrayList<>();
int i = 0;
if (faction.getChecks() == null) return;
for (Long key : Lists.reverse(new ArrayList<>(faction.getChecks().keySet()))) {
if (key == null) return;
if (i >= 54) {
remove.add(key);
}