Hotfix of missing SchemData NPE
Dieser Commit ist enthalten in:
Ursprung
9df9439120
Commit
0ecf0b1a42
@ -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);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren