SteamWar/SpigotCore
Archiviert
13
0

Hotfix of missing SchemData NPE

Dieser Commit ist enthalten in:
Lixfel 2020-02-01 14:47:23 +01:00
Ursprung 9df9439120
Commit 0ecf0b1a42

Datei anzeigen

@ -189,7 +189,10 @@ public class Schematic {
ResultSet rs = SQL.select("SELECT SchemData FROM Schematic WHERE SchemID = " + schemID); ResultSet rs = SQL.select("SELECT SchemData FROM Schematic WHERE SchemID = " + schemID);
try { try {
rs.next(); 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()){ switch(Core.getVersion()){
case 8: case 8:
Schematic_8.setPlayerClipboard(player, is); Schematic_8.setPlayerClipboard(player, is);