Page 1 of 1

Event NPE

Posted: Thu Mar 26, 2015 1:26 am
by Gries
Whenever a user in the event dies i get an NPE error in the console and he is not ressed

This is the console error:

Code: Select all

java.lang.NullPointerException
        at laszloevents.STD.STD.onDeath(STD.java:2189)
        at com.l2jserver.gameserver.model.quest.Quest.notifyDeath(Quest.java:613
)
        at com.l2jserver.gameserver.model.actor.L2Playable.doDie(L2Playable.java
:173)
        at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.doDie(L2Pc
Instance.java:5783)
        at com.l2jserver.gameserver.model.actor.status.PcStatus.reduceHp(PcStatu
s.java:310)
        at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.reduceCurr
entHp(L2PcInstance.java:12117)
        at com.l2jserver.gameserver.model.actor.L2Character.reduceCurrentHp(L2Ch
aracter.java:7602)
        at handlers.admincommandhandlers.AdminKill.kill(AdminKill.java:136)
        at handlers.admincommandhandlers.AdminKill.useAdminCommand(AdminKill.jav
a:121)
        at com.l2jserver.gameserver.network.clientpackets.SendBypassBuildCmd.run
Impl(SendBypassBuildCmd.java:87)
        at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:70)
        at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1
116)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

STD: null
STD.java file:
http://pastebin.com/x9HntKUi

I have no errors nor warnings in onDeath method :|

Re: Event NPE

Posted: Thu Mar 26, 2015 10:48 am
by Battlecruiser
Have you loaded appropriate custom skills with ids 40002-40006?

Re: Event NPE

Posted: Thu Mar 26, 2015 6:48 pm
by Gries
Indeex 40006 skill ID was missing in the xml file, thank you :lol:

Image