forked from Limework/skript-db
Fix null pointer exception
This commit is contained in:
parent
d0191007a5
commit
3466a04ec8
@ -305,6 +305,7 @@ public class EffExecuteStatement extends Effect {
|
||||
private void setVariable(Event e, String name, Object obj) {
|
||||
|
||||
//fix mediumblob and similar column types, so they return a String correctly
|
||||
if (obj != null) {
|
||||
if (obj.getClass().getName().equals("[B")) {
|
||||
obj = new String((byte[]) obj);
|
||||
|
||||
@ -316,6 +317,7 @@ public class EffExecuteStatement extends Effect {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Variables.setVariable(name.toLowerCase(Locale.ENGLISH), obj, e, isLocal);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user