From 3925aba341bf0e2966c6a310efbd552ee66136a6 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Tue, 29 Jul 2014 11:20:47 -0500 Subject: [PATCH] Fix NPE in security terminal. --- me/storage/SecurityInventory.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/me/storage/SecurityInventory.java b/me/storage/SecurityInventory.java index ae0f1968..5c72ccd6 100644 --- a/me/storage/SecurityInventory.java +++ b/me/storage/SecurityInventory.java @@ -125,7 +125,10 @@ public class SecurityInventory implements IMEInventoryHandler if ( ais.isMeaninful() ) { GameProfile thisUser = tbc.getProfile( ais.getItemStack() ); - if ( thisUser.equals( newUser ) ) + if ( thisUser == newUser ) + return false; + + if ( thisUser != null && thisUser.equals( newUser ) ) return false; } }