mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
handle nulls in string compositor
This commit is contained in:
parent
c6e779271f
commit
2be01b39a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user