Fix NPE in security terminal.
This commit is contained in:
parent
0146aa6422
commit
3925aba341
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue