mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- Extended some web service content tests
- Fixed issue with version author being displayed incorrectly - Fixed hasCategoryValue evalautor null pointer error found during testing git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2262 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -125,13 +125,16 @@ public class InCategoryEvaluator extends ActionConditionEvaluatorAbstractBase
|
||||
{
|
||||
// Check to see if the category value is in the list of currently set category values
|
||||
Serializable value = this.nodeService.getProperty(actionedUponNodeRef, categoryProperty);
|
||||
Collection<NodeRef> actualCategories = DefaultTypeConverter.INSTANCE.getCollection(NodeRef.class, value);
|
||||
for (NodeRef nodeRef : actualCategories)
|
||||
if (value != null)
|
||||
{
|
||||
if (nodeRef.equals(categoryValue) == true)
|
||||
Collection<NodeRef> actualCategories = DefaultTypeConverter.INSTANCE.getCollection(NodeRef.class, value);
|
||||
for (NodeRef nodeRef : actualCategories)
|
||||
{
|
||||
result = true;
|
||||
break;
|
||||
if (nodeRef != null && nodeRef.equals(categoryValue) == true)
|
||||
{
|
||||
result = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user