[ 
https://issues.apache.org/jira/browse/CMIS-644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florian Müller resolved CMIS-644.
---------------------------------

       Resolution: Fixed
    Fix Version/s: OpenCMIS 0.9.0

I can't reproduce it with OpenCMIS 0.9.0.
                
> NullPointerException when RepositoryInfo is initialized without 
> supportedPermission in Acl Capabilities
> -------------------------------------------------------------------------------------------------------
>
>                 Key: CMIS-644
>                 URL: https://issues.apache.org/jira/browse/CMIS-644
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-commons
>    Affects Versions: OpenCMIS 0.8.0
>            Reporter: Julien Boulay
>            Assignee: Florian Müller
>            Priority: Minor
>             Fix For: OpenCMIS 0.9.0
>
>
> When creating a CMIS server and implementing RepositoryInfo without 
> initializing supportedPermission on AclCapabilities, the JSONConverter 
> generates NullPointerException.
> {code:java}
> AclCapabilitiesDataImpl aclCaps = new AclCapabilitiesDataImpl();
>         aclCaps.setAclPropagation(AclPropagation.REPOSITORYDETERMINED);
>         aclCaps.setPermissionDefinitionData(null);
>         aclCaps.setPermissionMappingData(null);
>         repoInfo.setAclCapabilities(aclCaps);
> {code}
> {code}
> 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)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to