From ed3e6a3e4676fbcabee4098070788158d51a8657 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 20 Jan 2020 07:05:52 +0100 Subject: [PATCH] Hotfix Schemtype fromDB NPE --- SpigotCore_Main/src/de/steamwar/sql/SchematicType.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java index 29fab1a..068ceeb 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java @@ -81,6 +81,8 @@ public class SchematicType { } public static SchematicType fromDB(String input){ + if(input == null) + return null; return fromDB.get(input.toLowerCase()); }