Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
OpenCMIS 0.8.0
-
None
Description
When creating a CMIS server and implementing RepositoryInfo without initializing supportedPermission on AclCapabilities, the JSONConverter generates NullPointerException.
AclCapabilitiesDataImpl aclCaps = new AclCapabilitiesDataImpl(); aclCaps.setAclPropagation(AclPropagation.REPOSITORYDETERMINED); aclCaps.setPermissionDefinitionData(null); aclCaps.setPermissionMappingData(null); repoInfo.setAclCapabilities(aclCaps);
java.lang.NullPointerException at org.apache.chemistry.opencmis.commons.impl.JSONConverter.convert(JSONConverter.java:246) at org.apache.chemistry.opencmis.commons.impl.JSONConverter.convert(JSONConverter.java:180)