mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
fix NPE when no filter or validator applied
This commit is contained in:
@@ -122,8 +122,8 @@ public class Annotators {
|
||||
}
|
||||
|
||||
public static synchronized void recordAnnotation(Annotation annotation) {
|
||||
annotation.applyLabelFunction(filter);
|
||||
annotation.applyLabelFunction(validator);
|
||||
if (filter!=null) annotation.applyLabelFunction(filter);
|
||||
if (validator!=null) annotation.applyLabelFunction(validator);
|
||||
// sanity check here first
|
||||
annotation.getLabels();
|
||||
for (Annotator annotator : getAnnotators()) {
|
||||
|
||||
Reference in New Issue
Block a user