mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed critical issue reported by sonar (Dodgy - Redundant nullcheck of value known to be non-null)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63494 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -215,12 +215,9 @@ public class RecordComponentIdentifierAspect extends BaseBehaviourBean
|
||||
}
|
||||
}
|
||||
else if (afterId == null)
|
||||
{
|
||||
if (beforeId != null)
|
||||
{
|
||||
// The before value was not null, so remove it
|
||||
attributeService.removeAttribute(CONTEXT_VALUE, contextNodeRef, beforeId);
|
||||
}
|
||||
// Do a blanket removal in case this is a contextual nodes
|
||||
attributeService.removeAttributes(CONTEXT_VALUE, nodeRef);
|
||||
}
|
||||
|
Reference in New Issue
Block a user