Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
3.0 M3
-
None
-
core class reference null
-
Unknown
-
Description
How to reproduce:
1. From a component, run:
XWiki wiki = deprecatedContext.getWiki(); DocumentReference rightsClassReference = wiki.getGlobalRightsClass(deprecatedContext).getXClassReference();
where deprecatedContext is obtained from an Execution instance.
It seems that the if statement in BaseCollection.getXClassReference() does not take into account the fact that, for classes, getRelativeXClassReference() retuns null (according to the javadoc), so the xClassReferenceCache is never initialized.
Tested on snapshot build.