mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126371 jkaabimofrad: 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/BRANCHES/DEV/5.2.N/root@126716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -149,7 +149,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);
|
||||
}
|
||||
@@ -328,11 +333,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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user