Kaynağa Gözat

BETA: Fixed really rare NPE that can occur when you kill a mob and your char is not online in 5 seconds when notification of killed mob is made.
* Reported by: takhs7

Rumen Nikiforov 12 yıl önce
ebeveyn
işleme
3eada5a256

+ 4 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Attackable.java

@@ -565,7 +565,10 @@ public class L2Attackable extends L2Npc
 		@Override
 		public void run()
 		{
-			_quest.notifyKill(_attackable, _killer, _isSummon);
+			if ((_quest != null) && (_attackable != null) && (_killer != null))
+			{
+				_quest.notifyKill(_attackable, _killer, _isSummon);
+			}
 		}
 	}