Skip to content

Commit

Permalink
Fix potential NPE
Browse files Browse the repository at this point in the history
Issue #54671

Change-Id: I4583ddfa2a832413adf7522745f3c0779deb6f46
  • Loading branch information
bforest committed Nov 20, 2018
1 parent 895ad6a commit 6d7eace
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public List<AuditNodeType> selectNodeType(AuditQueryParameters params, String qu
QName typeQName = QName.createQName(myNodeType, this.namespaceService);
if (Boolean.valueOf(dictionaryService.isSubClass(typeQName, ContentModel.TYPE_CONTENT))) {
String nodeTypeLabel = this.dictionaryService.getType(typeQName).getTitle(this.dictionaryService);
auditNodeType.setNodeTypeLabel(nodeTypeLabel);
auditNodeType.setNodeTypeLabel(nodeTypeLabel != null ? nodeTypeLabel : myNodeType);

res.add(auditNodeType);
}
Expand Down

0 comments on commit 6d7eace

Please sign in to comment.