From 0ecf0b1a4235a64ca52bb549e54484192467439b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 1 Feb 2020 14:47:23 +0100 Subject: [PATCH] Hotfix of missing SchemData NPE --- SpigotCore_Main/src/de/steamwar/sql/Schematic.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/Schematic.java b/SpigotCore_Main/src/de/steamwar/sql/Schematic.java index 9954681..d8ddf43 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/Schematic.java +++ b/SpigotCore_Main/src/de/steamwar/sql/Schematic.java @@ -189,7 +189,10 @@ public class Schematic { ResultSet rs = SQL.select("SELECT SchemData FROM Schematic WHERE SchemID = " + schemID); try { rs.next(); - InputStream is = rs.getBlob("SchemData").getBinaryStream(); + Blob blob = rs.getBlob("SchemData"); + if(blob == null) + throw new NoClipboardException(); + InputStream is = blob.getBinaryStream(); switch(Core.getVersion()){ case 8: Schematic_8.setPlayerClipboard(player, is);