Skip to content
Snippets Groups Projects
Commit 66697f4c authored by Rumen Nikiforov's avatar Rumen Nikiforov
Browse files

BETA: Fixing little NPE after [9274]

parent df119897
No related branches found
No related tags found
No related merge requests found
...@@ -46,12 +46,18 @@ public class ServitorShare extends L2Effect ...@@ -46,12 +46,18 @@ public class ServitorShare extends L2Effect
if (getEffected().isPlayer()) if (getEffected().isPlayer())
{ {
L2Summon summon = getEffector().getPet(); L2Summon summon = getEffector().getPet();
effects = summon.getAllEffects(); if (summon != null)
{
effects = summon.getAllEffects();
}
} }
else if (getEffected().isSummon()) else if (getEffected().isSummon())
{ {
L2PcInstance owner = getEffected().getActingPlayer(); L2PcInstance owner = getEffected().getActingPlayer();
effects = owner.getAllEffects(); if (owner != null)
{
effects = owner.getAllEffects();
}
} }
if (effects != null) if (effects != null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment