Description
testMembers(org.apache.jackrabbit.oak.jcr.security.principal.PrincipalManagerTest) Time elapsed: 0.01 sec <<< ERROR! java.lang.NullPointerException at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:192) at org.apache.jackrabbit.oak.core.MutableTree.getTree(MutableTree.java:378) at org.apache.jackrabbit.oak.core.AbstractRoot.getTree(AbstractRoot.java:229) at org.apache.jackrabbit.oak.core.AbstractRoot.getTree(AbstractRoot.java:65) at org.apache.jackrabbit.oak.security.user.AuthorizableBaseProvider.getByPath(AuthorizableBaseProvider.java:66) at org.apache.jackrabbit.oak.security.user.MembershipProvider$2.getNext(MembershipProvider.java:270) at org.apache.jackrabbit.oak.security.user.MembershipProvider$2.getNext(MembershipProvider.java:244) at org.apache.jackrabbit.oak.util.AbstractLazyIterator.hasNext(AbstractLazyIterator.java:39) at org.apache.jackrabbit.oak.security.user.GroupImpl.getMembers(GroupImpl.java:195) at org.apache.jackrabbit.oak.security.user.GroupImpl.getMembers(GroupImpl.java:81) at org.apache.jackrabbit.oak.security.user.GroupImpl$GroupPrincipal.members(GroupImpl.java:275) at org.apache.jackrabbit.oak.jcr.security.principal.PrincipalManagerTest.testMembers(PrincipalManagerTest.java:186)
This only happens on Buildbot, which seems to be caused by a non stable test setup. When I run this test locally, the if branch checking isGroup is never executed.