Fixed TrapInfo NPE.

Contributed by Sahar.
This commit is contained in:
MobiusDev
2018-05-19 13:26:58 +00:00
parent 7af7f4cf19
commit 08b3c72d94

View File

@ -213,7 +213,7 @@ public abstract class AbstractNpcInfo implements IClientOutgoingPacket
public TrapInfo(L2TrapInstance cha, L2Character attacker)
{
super(cha, attacker.canOverrideCond(PcCondOverride.SEE_ALL_PLAYERS));
super(cha, attacker == null ? false : attacker.canOverrideCond(PcCondOverride.SEE_ALL_PLAYERS));
_trap = cha;
_idTemplate = cha.getTemplate().getDisplayId();