Skip to content

Commit

Permalink
Fixed story sample + minor GUI 'null' issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Mar 2, 2017
1 parent 650afd6 commit 1226980
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Expand Up @@ -280,13 +280,17 @@ public static String getTypeLocalized(ObjectReferenceType ref) {

public static String getReferencedObjectNames(List<ObjectReferenceType> refs, boolean showTypes) {
return refs.stream()
.map(ref -> getName(ref) + (showTypes ? (" (" + getTypeLocalized(ref) + ")") : ""))
.map(ref -> emptyIfNull(getName(ref)) + (showTypes ? (" (" + emptyIfNull(getTypeLocalized(ref)) + ")") : ""))
.collect(Collectors.joining(", "));
}

private static String emptyIfNull(String s) {
return s != null ? s : "";
}

public static String getReferencedObjectDisplayNamesAndNames(List<ObjectReferenceType> refs, boolean showTypes) {
return refs.stream()
.map(ref -> getDisplayNameAndName(ref) + (showTypes ? (" (" + getTypeLocalized(ref) + ")") : ""))
.map(ref -> emptyIfNull(getDisplayNameAndName(ref)) + (showTypes ? (" (" + emptyIfNull(getTypeLocalized(ref)) + ")") : ""))
.collect(Collectors.joining(", "));
}

Expand Down
Expand Up @@ -46,6 +46,7 @@
<resolutionTime>run</resolutionTime>
</approverRef>
<evaluationStrategy>firstDecides</evaluationStrategy>
<groupExpansion>onWorkItemCreation</groupExpansion>
</level>
</approvalSchema>
</approval>
Expand Down

0 comments on commit 1226980

Please sign in to comment.