Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)

119810 jvonka: FileFolder API - fix TestFavourites fallout (due to unexpected id:null -> NPE) after adding some NodeApiTests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126371 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-05-10 10:33:49 +00:00
parent 945ccb724b
commit 8d2ab43524

View File

@@ -142,7 +142,12 @@ public class Node implements Comparable<Node>
}
private NodeRef getStringAsNodeRef(String nRefString) {
if(! NodeRef.isNodeRef(nRefString))
if (nRefString == null)
{
return null;
}
if( ! NodeRef.isNodeRef(nRefString))
{
return new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, nRefString);
}
@@ -321,11 +326,12 @@ public class Node implements Comparable<Node>
}
/**
* @deprecated
* @deprecated note: used when creating (via POST) favourite target
*/
public void setGuid(NodeRef guid)
{
this.guid = guid;
setId(guid.toString());
}
/**