Skip to content

Commit e669d96

Browse files
Marcel Waldenjknack
authored andcommitted
All for null arguments to be passed again.
In order versions, This used to allow for nulls to be passed as an argument if it was not found in the options. This would add that functionality back.
1 parent 4e378d2 commit e669d96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

handlebars/src/main/java/com/github/jknack/handlebars/helper/MethodHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public Object apply(final Object context, final Options options) throws IOExcept
7272
if (paramTypes[i] == Options.class) {
7373
args[i] = options;
7474
} else {
75-
args[i] = options.param(i - 1);
75+
args[i] = options.param(i - 1, null);
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)