Fix NPE in security terminal.

This commit is contained in:
AlgorithmX2 2014-07-29 11:20:47 -05:00
parent 0146aa6422
commit 3925aba341

View file

@ -125,7 +125,10 @@ public class SecurityInventory implements IMEInventoryHandler<IAEItemStack>
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;
}
}