07-14-2013, 03:22 AM
Помогите пожалуйста советом
лог ошибки
сам код
Немогу понять как и где искать этот null
лог ошибки
ыз
SEVERE: Failed executing HitTask.
java.lang.NullPointerException
at net.sf.l2j.gameserver.model.actor.instance.AvanpostHumanInstance.unspawnGuard(AvanpostHumanInstance.java:108)
at net.sf.l2j.gameserver.model.actor.instance.AvanpostHumanInstance.doDie(AvanpostHumanInstance.java:141)
at net.sf.l2j.gameserver.model.actor.status.CharStatus.reduceHp(CharStatus.java:218)
at net.sf.l2j.gameserver.model.actor.status.NpcStatus.reduceHp(NpcStatus.java:47)
at net.sf.l2j.gameserver.model.actor.status.AttackableStatus.reduceHp(AttackableStatus.java:44)
at net.sf.l2j.gameserver.model.actor.L2Character.reduceCurrentHp(L2Character.java:7634)
at net.sf.l2j.gameserver.model.actor.L2Attackable.reduceCurrentHp(L2Attackable.java:405)
at net.sf.l2j.gameserver.model.actor.L2Attackable.reduceCurrentHp(L2Attackable.java:344)
at net.sf.l2j.gameserver.model.actor.L2Character.onHitTimer(L2Character.java:5855)
at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.onHitTimer(L2PcInstance.java:4785)
at net.sf.l2j.gameserver.model.actor.L2Character$HitTask.run(L2Character.java:2836)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
java.lang.NullPointerException
at net.sf.l2j.gameserver.model.actor.instance.AvanpostHumanInstance.unspawnGuard(AvanpostHumanInstance.java:108)
at net.sf.l2j.gameserver.model.actor.instance.AvanpostHumanInstance.doDie(AvanpostHumanInstance.java:141)
at net.sf.l2j.gameserver.model.actor.status.CharStatus.reduceHp(CharStatus.java:218)
at net.sf.l2j.gameserver.model.actor.status.NpcStatus.reduceHp(NpcStatus.java:47)
at net.sf.l2j.gameserver.model.actor.status.AttackableStatus.reduceHp(AttackableStatus.java:44)
at net.sf.l2j.gameserver.model.actor.L2Character.reduceCurrentHp(L2Character.java:7634)
at net.sf.l2j.gameserver.model.actor.L2Attackable.reduceCurrentHp(L2Attackable.java:405)
at net.sf.l2j.gameserver.model.actor.L2Attackable.reduceCurrentHp(L2Attackable.java:344)
at net.sf.l2j.gameserver.model.actor.L2Character.onHitTimer(L2Character.java:5855)
at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.onHitTimer(L2PcInstance.java:4785)
at net.sf.l2j.gameserver.model.actor.L2Character$HitTask.run(L2Character.java:2836)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
сам код
ыз
public boolean doDie(L2Character killer) {
if (!super.doDie(killer))
return false;
L2PcInstance player = null;
if (killer instanceof L2PcInstance)
player = (L2PcInstance) killer;
else if (killer instanceof L2Summon)
player = ((L2Summon) killer).getOwner();
if (player != null)
unspawnGuard();
return true;
}
private void unspawnGuard()
{
SpawnTable.getInstance().deleteSpawn(_npcSpawn, false);
_lastNpcSpawn.deleteMe();
_npcSpawn.stopRespawn();
_npcSpawn = null;
_lastNpcSpawn = null;
}
if (!super.doDie(killer))
return false;
L2PcInstance player = null;
if (killer instanceof L2PcInstance)
player = (L2PcInstance) killer;
else if (killer instanceof L2Summon)
player = ((L2Summon) killer).getOwner();
if (player != null)
unspawnGuard();
return true;
}
private void unspawnGuard()
{
SpawnTable.getInstance().deleteSpawn(_npcSpawn, false);
_lastNpcSpawn.deleteMe();
_npcSpawn.stopRespawn();
_npcSpawn = null;
_lastNpcSpawn = null;
}
Немогу понять как и где искать этот null
Я не волшебник... Я, пока, учусь. L2Jserver CT2.5