mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 07:05:51 +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) {
|
public boolean hasCustomObjective(Quest quest, String s) {
|
||||||
|
if (getQuestData(quest) == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (getQuestData(quest).customObjectiveCounts.containsKey(s)) {
|
if (getQuestData(quest).customObjectiveCounts.containsKey(s)) {
|
||||||
int count = getQuestData(quest).customObjectiveCounts.get(s);
|
int count = getQuestData(quest).customObjectiveCounts.get(s);
|
||||||
int index = -1;
|
int index = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user