From c7de4364b1660d9ab843deae8dbb226c8dd8842d Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Mon, 14 Jul 2014 17:09:06 -0500 Subject: [PATCH] If the world is null, don't return a string of the location. --- src/main/java/com/graywolf336/jail/beans/Prisoner.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/graywolf336/jail/beans/Prisoner.java b/src/main/java/com/graywolf336/jail/beans/Prisoner.java index 945aeb1..a635735 100644 --- a/src/main/java/com/graywolf336/jail/beans/Prisoner.java +++ b/src/main/java/com/graywolf336/jail/beans/Prisoner.java @@ -178,6 +178,7 @@ public class Prisoner { /** Gets the previous location of this player, separated by a comma. */ public String getPreviousLocationString() { if(previousPosition == null) return ""; + else if(previousPosition.getWorld() == null) return ""; else return previousPosition.getWorld().getName() + "," + previousPosition.getX() + "," + previousPosition.getY() + "," +