SummonRequestHolder null summoner NPE fix.
This commit is contained in:
parent
0be84b851f
commit
87878357f2
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -32,7 +32,7 @@ public class SummonRequestHolder
|
||||
public void setTarget(Player summoner, Skill skill)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_skill = skill;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ public class SummonRequestHolder
|
||||
public void setTarget(Player summoner, Skill skill)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_skill = skill;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
@ -30,7 +30,7 @@ public class SummonRequestHolder
|
||||
public SummonRequestHolder(Player summoner)
|
||||
{
|
||||
_summoner = summoner;
|
||||
_location = new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
_location = summoner == null ? null : new Location(summoner.getX(), summoner.getY(), summoner.getZ(), summoner.getHeading());
|
||||
}
|
||||
|
||||
public Player getSummoner()
|
||||
|
Loading…
Reference in New Issue
Block a user