Fix NPE with certain modules, fixes #785

This commit is contained in:
PikaMug 2019-05-07 02:56:25 -04:00
parent 7b973dae2b
commit 2e94a0f63d

View File

@ -179,9 +179,12 @@ public abstract class CustomObjective implements Listener {
for (Entry<String, Object> e : currentStage.customObjectiveData) {
if (e.getKey().equals(datamap.getKey())) {
m.put(e.getKey(), e.getValue());
return m;
}
}
}
if (m != null && !m.isEmpty()) {
return m;
}
}
}