Skip to content

Commit 3849b71

Browse files
committed
Fix varargs (i.e. <n+>) signature validation. #48
Was only working correct for arrays <a+> signatures
1 parent 84aeff0 commit 3849b71

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/dashjoin/jsonata/utils/Signature.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ public Object validate(Object _args, Object context) {
385385
validatedArgs.add(arg);
386386
argIndex++;
387387
} else {
388+
arg = argIndex<args.size() ? args.get(argIndex) : null;
388389
validatedArgs.add(arg);
389390
argIndex++;
390391
}

0 commit comments

Comments
 (0)