mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-01 23:56:40 +00:00
Fix NPE in unban command
This commit is contained in:
@ -37,7 +37,7 @@ public class UnbanCMD extends PlexCommand
|
||||
UUID targetUUID = PlexUtils.getFromName(args[0]);
|
||||
PlexPlayer plexPlayer = getOfflinePlexPlayer(targetUUID);
|
||||
|
||||
if (!DataUtils.hasPlayedBefore(targetUUID))
|
||||
if (targetUUID == null || !DataUtils.hasPlayedBefore(targetUUID))
|
||||
{
|
||||
throw new PlayerNotFoundException();
|
||||
}
|
||||
|
Reference in New Issue
Block a user