SummonRequestHolder null summoner NPE fix.

This commit is contained in:
MobiusDevelopment
2022-01-17 03:10:56 +00:00
parent 0be84b851f
commit 87878357f2
25 changed files with 25 additions and 25 deletions

View File

@@ -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()