[FIX] NPE в AdvancedProtectHandler

This commit is contained in:
Gravit 2020-05-26 00:09:01 +07:00
parent 72a8c03296
commit c7688afb32
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -99,6 +99,6 @@ public Map<String, Command> getCommands() {
@Override
public boolean onJoinServer(String serverID, String username, Client client) {
return !enableHardwareFeature || client.trustLevel.hardwareInfo != null;
return !enableHardwareFeature || (client.trustLevel != null && client.trustLevel.hardwareInfo != null);
}
}