mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-27 02:31:48 +01:00
Ensure quest name is not null or empty, fixes #370
This commit is contained in:
parent
ac899a7c8c
commit
d8efb37a61
@ -1655,6 +1655,10 @@ public class Quester {
|
||||
data.set("quest-points", questPoints);
|
||||
ConfigurationSection dataSec = data.createSection("questData");
|
||||
for (Quest quest : currentQuests.keySet()) {
|
||||
if (quest.name == null || quest.name.isEmpty()) {
|
||||
plugin.getLogger().severe("Quest name was null or empty while loading data");
|
||||
return null;
|
||||
}
|
||||
ConfigurationSection questSec = dataSec.createSection(quest.name);
|
||||
QuestData questData = getQuestData(quest);
|
||||
if (questData == null)
|
||||
|
Loading…
Reference in New Issue
Block a user