Skip to content
Snippets Groups Projects
Commit 05ff84e4 authored by Zealar's avatar Zealar
Browse files

Fix NPE in OracleTeleport

Reported by: epu
parent bb43b4af
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,12 @@ public final class OracleTeleport extends AbstractNpcAI
String htmltext = "";
QuestState st = getQuestState(player, false);
int npcId = npc.getId();
if (st == null)
{
return null;
}
final int npcId = npc.getId();
if (event.equalsIgnoreCase("Return"))
{
if (Util.contains(TEMPLE_PRIEST, npcId) && (st.getState() == State.STARTED))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment