-
Bug
-
Resolution: Fixed
-
Neutral
-
1.4.3
-
None
-
None
-
-
Empty show more show less
I'm calling MagnoliaTemplatingUtilities.getInstance().createLink(content) from outside a web context (code initiated by an activation) and end up with a nullpointerexception in the below method:
info.magnolia.module.extendedtemplatingkit.DomainNamePathTransformer#transform
WebContext ctx = MgnlContext.getWebContextOrNull(); ExtendedAggregationState state = (ExtendedAggregationState) ctx.getAggregationState();
Obviously I end up with a null ctx.. not sure if I'm not allowed to use the MagnoliaTemplatingUtilities outside a web context?
Acceptance criteria
- duplicates
-
MGNLETK-70 NPE when attempting to use DomainNamePathTransformer outside of webcontext
- Closed