소스 검색

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 년 전
부모
커밋
3eada5a256
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Attackable.java

+ 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);
+			}
 		}
 	}