Allow for null `UserProperty`
@@ -878,12 +878,13 @@ public class User extends AbstractModelObject implements AccessControlled, Descr
} else {
p = d.newInstance(req, o);
}
- p.setUser(this);
}
- if (p != null)
+ if (p != null) {
+ p.setUser(this);
props.add(p);
}
+ }
this.properties = props;
save();
