Skip to content

Commit

Permalink
MID-4491: omit dash with empty string if the relation is default
Browse files Browse the repository at this point in the history
  • Loading branch information
dejavix committed May 28, 2018
1 parent ded7f1d commit 25f55a0
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -283,7 +283,11 @@ private static void appendRelation(AssignmentType assignment, StringBuilder sb)
if (assignment.getTargetRef() == null) {
return;
}
sb.append(" - " + RelationTypes.getRelationType(assignment.getTargetRef().getRelation()).getHeaderLabel());

String hdrLabel = RelationTypes.getRelationType(assignment.getTargetRef().getRelation()).getHeaderLabel();
if (hdrLabel != null && !hdrLabel.isEmpty()) {
sb.append(" - " + hdrLabel);
}

}

Expand Down

0 comments on commit 25f55a0

Please sign in to comment.