Fixed NPE (Cleanup Task)
This commit is contained in:
parent
d554adfef5
commit
e5a9b82bdf
@ -31,7 +31,9 @@ public class CheckTask implements Runnable {
|
|||||||
}
|
}
|
||||||
List<Long> remove = new ArrayList<>();
|
List<Long> remove = new ArrayList<>();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
if (faction.getChecks() == null) return;
|
||||||
for (Long key : Lists.reverse(new ArrayList<>(faction.getChecks().keySet()))) {
|
for (Long key : Lists.reverse(new ArrayList<>(faction.getChecks().keySet()))) {
|
||||||
|
if (key == null) return;
|
||||||
if (i >= 54) {
|
if (i >= 54) {
|
||||||
remove.add(key);
|
remove.add(key);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user