Skip to content

Commit

Permalink
Fixed NPE in gui tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Oct 12, 2017
1 parent b3828aa commit 559be14
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -16,6 +16,7 @@
package com.evolveum.midpoint.gui.api.util;

import static com.evolveum.midpoint.gui.api.page.PageBase.createStringResourceStatic;
import static com.evolveum.midpoint.schema.util.ObjectTypeUtil.normalizeRelation;

import java.io.PrintWriter;
import java.io.StringWriter;
Expand Down Expand Up @@ -913,7 +914,7 @@ public static <C extends Containerable> String getDisplayName(PrismContainerValu
C containerable = prismContainerValue.asContainerable();
if (containerable instanceof AssignmentType && ((AssignmentType) containerable).getTargetRef() != null) {
ObjectReferenceType assignemntTargetRef = ((AssignmentType) containerable).getTargetRef();
return getName(assignemntTargetRef) + " - " + assignemntTargetRef.getRelation().getLocalPart();
return getName(assignemntTargetRef) + " - " + normalizeRelation(assignemntTargetRef.getRelation()).getLocalPart();
}

if (containerable instanceof ExclusionPolicyConstraintType){
Expand Down

0 comments on commit 559be14

Please sign in to comment.