Skip to content

Commit

Permalink
npe fix attempt (for focus summary panel)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Sep 5, 2019
1 parent 9ed85e0 commit 351cd77
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -146,7 +146,9 @@ protected IModel<String> getDefaltParentOrgModel() {
protected void addAdditionalExpressionVariables(ExpressionVariables variables) {
List<OrgType> parentOrgs = new ArrayList<>();
for (ObjectReferenceType parentOrgRef : getModelObject().getParentOrgRef()) {
parentOrgs.add((OrgType) parentOrgRef.asReferenceValue().getObject().asObjectable());
if (parentOrgRef != null && parentOrgRef.asReferenceValue().getObject() != null) {
parentOrgs.add((OrgType) parentOrgRef.asReferenceValue().getObject().asObjectable());
}
}
variables.putList(ExpressionConstants.VAR_ORGS, parentOrgs);
}
Expand Down

0 comments on commit 351cd77

Please sign in to comment.