Add null check for alternative labels in label generator
@@ -104,8 +104,10 @@ public class LabelGenerator {
generateLabels(props, a);
});
} else if (sp instanceof StaticPropertyAlternative) {
+ if (((StaticPropertyAlternative) sp).getStaticProperty() != null) {
generateLabels(props, ((StaticPropertyAlternative) sp).getStaticProperty());
}
+ }
return sp;
}
