Commit b34605db authored by benjaminParisel's avatar benjaminParisel Committed by abirembaut

fix(customWidget): Check if property exist to remove NPE (#2590)

Covers[BS-17278](https://bonitasoft.atlassian.net/browse/BS-17278)
parent 43fed127
......@@ -73,6 +73,9 @@ public class FixBondsTypesVisitor implements ElementVisitor<Void> {
for (Property property : properties) {
BondType bondType = property.getBond();
PropertyValue propertyValue = component.getPropertyValues().get(property.getName());
if(propertyValue == null){
continue;
}
if (EXPRESSION.equals(bondType)) {
bondType = CONSTANT;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment