handle nulls in string compositor

This commit is contained in:
Jonathan Shook 2024-03-04 15:51:53 -06:00
parent c6e779271f
commit 2be01b39a3

View File

@ -70,7 +70,7 @@ public class StringCompositor implements LongFunction<String> {
}
public StringCompositor(ParsedTemplateString template, Map<String,Object> fconfig) {
this(template,fconfig,Object::toString);
this(template,fconfig,s -> s!=null ? s.toString() : "NULL");
}
@Override