Fix potential NPE when loading custom modules by leNicDev, see #183

This commit is contained in:
HappyPikachu 2017-12-17 22:21:53 -05:00
parent ccd606e55b
commit c70b05e234

View File

@ -669,6 +669,9 @@ public class Quester {
}
public boolean hasCustomObjective(Quest quest, String s) {
if (getQuestData(quest) == null) {
return false;
}
if (getQuestData(quest).customObjectiveCounts.containsKey(s)) {
int count = getQuestData(quest).customObjectiveCounts.get(s);
int index = -1;