From 6d7eace82ff68326e83eba6f532fd93d94ac9840 Mon Sep 17 00:00:00 2001 From: Bertrand FOREST Date: Tue, 20 Nov 2018 16:40:14 +0100 Subject: [PATCH] Fix potential NPE Issue #54671 Change-Id: I4583ddfa2a832413adf7522745f3c0779deb6f46 --- .../alfresco/web/scripts/shareStats/SelectNodeTypesGet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_alfresco/src/main/java/com/atolcd/alfresco/web/scripts/shareStats/SelectNodeTypesGet.java b/module_alfresco/src/main/java/com/atolcd/alfresco/web/scripts/shareStats/SelectNodeTypesGet.java index 0cfad71e..cdb9fc51 100644 --- a/module_alfresco/src/main/java/com/atolcd/alfresco/web/scripts/shareStats/SelectNodeTypesGet.java +++ b/module_alfresco/src/main/java/com/atolcd/alfresco/web/scripts/shareStats/SelectNodeTypesGet.java @@ -115,7 +115,7 @@ public List 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); }