12
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);
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);