Various quest QuestState NPE checks.

This commit is contained in:
MobiusDevelopment
2024-12-07 21:38:15 +02:00
parent f0c5c62ba7
commit 8ed5655d5a
46 changed files with 46 additions and 46 deletions

View File

@@ -212,7 +212,7 @@ public class Q00833_DevilsTreasureTauti extends Quest
public Set<NpcLogListHolder> getNpcLogList(Player player)
{
final QuestState qs = getQuestState(player, false);
if (qs.isCond(1) || qs.isCond(4))
if ((qs != null) && (qs.isCond(1) || qs.isCond(4)))
{
final Set<NpcLogListHolder> holder = new HashSet<>(2);
holder.add(new NpcLogListHolder(FLAME_SCORPION, false, qs.getInt("killed_" + FLAME_SCORPION)));