Fixed issue when some PHP clients where passing null values as empty strings. Now the server code will expect this possibility and check accordingly.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2204 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2006-01-25 16:12:19 +00:00
parent 7fd4fa1ec9
commit 2997169e1e

View File

@@ -185,7 +185,7 @@ public class Utils
// find out where we are starting from, either the root or the node
// represented by the uuid
NodeRef rootNodeRef = null;
if (uuid == null)
if (uuid == null || uuid.length() == 0)
{
rootNodeRef = nodeService.getRootNode(convertToStoreRef(store));
} else
@@ -194,7 +194,7 @@ public class Utils
}
// see if we have a path to further define the node being requested
if (path != null)
if (path != null && path.length() != 0)
{
List<NodeRef> nodes = searchService.selectNodes(rootNodeRef, path,
null, namespaceService, false);