We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 397405b commit d219d04Copy full SHA for d219d04
src/main/java/com/btk5h/skriptmirror/skript/reflect/ExprJavaCall.java
@@ -123,7 +123,7 @@ public T getSingle(Event e) {
123
} else if (rawArgs.isSingle()) {
124
// A special case of the above, since a single argument will not be wrapped in a list
125
// Directly wrap the argument in an array to ensure the unary method is invoked
126
- arguments = new Object[]{rawArgs.getSingle(e)};
+ arguments = new Object[]{SkriptMirrorUtil.reifyIfNull(rawArgs.getSingle(e))};
127
} else {
128
// If the user is using a non-single non-list expression, assume the number of arguments is correct
129
arguments = rawArgs.getArray(e);
0 commit comments