From ec74034c0b5175f1a8181cd42b8d697c5c154871 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 31 Jan 2022 08:34:27 +0100 Subject: [PATCH] Fix NPE Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/ArenaCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/ArenaCommand.java b/src/de/steamwar/bungeecore/commands/ArenaCommand.java index c5f9c20..9abd0f5 100644 --- a/src/de/steamwar/bungeecore/commands/ArenaCommand.java +++ b/src/de/steamwar/bungeecore/commands/ArenaCommand.java @@ -46,7 +46,7 @@ public class ArenaCommand extends BasicCommand { } Subserver subserver = Subserver.getSubserver(server); - if(subserver.getType() != Servertype.ARENA) { + if(subserver == null || subserver.getType() != Servertype.ARENA) { Message.send("ARENA_NOT_FOUND", player); return; }