I am trying to assign a permanent permission to a group but I got null pointer exception when begin or end dates are not defined.
ACE ace = new ACE();
ace.setUsername(username);
ace.setPermission("Everything");
ace.setCreator(nuxeologin);
ace.setBlockInheritance(true);
newFolder.addPermission(ace);
Exception in thread "main" java.lang.NullPointerException
at org.nuxeo.client.api.objects.acl.ACE.getBeginAsString(ACE.java:152)
at org.nuxeo.client.api.objects.Document.setPermissionAutomationParameters(Document.java:422)
at org.nuxeo.client.api.objects.Document.addPermission(Document.java:416)
how can I do this?
Tks