Fix calling with 0 args targeting Java (#88)

This commit is contained in:
Christopher George
2019-10-08 09:29:14 +02:00
committed by Nicolas Cannasse
parent 0daee20545
commit 22eb58b3de
+1 -1
View File
@@ -400,7 +400,7 @@ class Interp {
else
minParams++;
var f = function(args:Array<Dynamic>) {
if( args.length != params.length ) {
if( ( (args == null) ? 0 : args.length ) != params.length ) {
if( args.length < minParams ) {
var str = "Invalid number of parameters. Got " + args.length + ", required " + minParams;
if( name != null ) str += " for function '" + name+"'";