Warn missing completed times for SQL, fixes #1867

This commit is contained in:
PikaMug 2022-02-18 02:08:12 -05:00
parent a00a5176e2
commit 4fb8e5e781

View File

@ -332,7 +332,7 @@ public class SqlStorage implements StorageImplementation {
plugin.getLogger().severe("Quest was null for completed times of quester " + quester.getUUID());
return;
}
if (!quester.getAmountsCompleted().containsKey(entry.getKey())) {
if (!quester.getAmountsCompleted().containsKey(entry.getKey()) || quester.getAmountsCompleted().get(entry.getKey()) == null) {
plugin.getLogger().warning("Quester " + quester.getUUID() + " is missing amounts completed for quest ID " + entry.getKey().getId());
return;
}