Skip to content

Commit 1a34f49

Browse files
committed
Fix sanitize bug when no arguments are specified
1 parent 18f5dcd commit 1a34f49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/net/quickwrite/fluent4j/ast/placeable/base/FluentFunction.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ private Pair<String, FluentElement> getArgument(final StringSlice content) {
9393
* @return The sanitized arguments of the function
9494
*/
9595
protected FluentArgs getArguments(final DirectFluentBundle bundle, final FluentArgs arguments) {
96-
this.arguments.sanitize(bundle, arguments);
96+
if (this.arguments != null)
97+
this.arguments.sanitize(bundle, arguments);
98+
9799
return this.arguments;
98100
}
99101

0 commit comments

Comments
 (0)