mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-28 05:35:33 +01:00
Fix potential NPE when loading custom modules by leNicDev, see #183
This commit is contained in:
parent
ccd606e55b
commit
c70b05e234
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user