SummonRequestHolder null summoner NPE fix.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user