Added d:version mapping to org.alfresco.util.VersionNumber.

Fixed NPE in NodeBrowser where the the dictionary doesn't recognise the persisted type.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5556 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-04-26 08:19:54 +00:00
parent eecfcd3485
commit 9770c96fb7

View File

@@ -719,10 +719,14 @@ public class AdminNodeBrowseBean
if (datatype == null || datatype.equals(DataTypeDefinition.ANY.toString()))
{
if (value != null)
{
DataTypeDefinition dataTypeDefinition = dictionaryService.getDataType(value.getClass());
if (dataTypeDefinition != null)
{
datatype = dictionaryService.getDataType(value.getClass()).getName().toString();
}
}
}
return datatype;
}