Additional null check; fix signportals issue 17

This commit is contained in:
Tim Ekl 2011-12-18 21:16:13 -05:00
parent fdb8c862f9
commit 251b66a8d0
2 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class PlayerDestination implements MVDestination {
plLoc = (Player) e.getPassenger();
}
if (p != null && plLoc != null && !plLoc.getName().equalsIgnoreCase(p.getName())) {
if (p != null && plLoc != null) {
return p.getLocation();
}
return null;

View File

@ -132,6 +132,9 @@ public class LocationManipulation {
* @return The {@link String}
*/
public static String strCoordsRaw(Location l) {
if(l == null) {
return "null";
}
String result = "";
DecimalFormat df = new DecimalFormat();
df.setMinimumFractionDigits(0);