Fix null pointer exception

This commit is contained in:
Govindas 2022-03-21 17:28:59 +02:00
parent d0191007a5
commit 3466a04ec8
1 changed files with 10 additions and 8 deletions

View File

@ -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);
}