Fix for ALF-10447 - Share Admin -> NodeBrowser: NPE when trying to access version node (child of version history node)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30801 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2011-09-27 13:16:36 +00:00
parent 6d5bef365f
commit e556b1070f
3 changed files with 10 additions and 5 deletions

View File

@@ -991,7 +991,11 @@ public class NodeBrowserScript extends DeclarativeWebScript
*/
public String getDataType()
{
String datatype = Property.this.getTypeName().getName();
String datatype = null;
if (Property.this.getTypeName() != null)
{
datatype = Property.this.getTypeName().getName();
}
if (datatype == null || datatype.equals(DataTypeDefinition.ANY.toString()))
{
if (value != null)