Fix null pointer exception

This commit is contained in:
Govindas 2022-03-21 17:28:59 +02:00
parent d0191007a5
commit 3466a04ec8

View File

@ -305,6 +305,7 @@ public class EffExecuteStatement extends Effect {
private void setVariable(Event e, String name, Object obj) { private void setVariable(Event e, String name, Object obj) {
//fix mediumblob and similar column types, so they return a String correctly //fix mediumblob and similar column types, so they return a String correctly
if (obj != null) {
if (obj.getClass().getName().equals("[B")) { if (obj.getClass().getName().equals("[B")) {
obj = new String((byte[]) obj); obj = new String((byte[]) obj);
@ -316,6 +317,7 @@ public class EffExecuteStatement extends Effect {
ex.printStackTrace(); ex.printStackTrace();
} }
} }
}
Variables.setVariable(name.toLowerCase(Locale.ENGLISH), obj, e, isLocal); Variables.setVariable(name.toLowerCase(Locale.ENGLISH), obj, e, isLocal);
} }