Avoid NullPointerException when checking cookies in webengine
-------------------------------------------------------------
Key: NXP-3907
URL: http://jira.nuxeo.org/browse/NXP-3907
Project: Nuxeo Enterprise Platform
Issue Type: Bug
Affects Versions: 5.2 GA
Reporter: Anahide Tchertchian
Assignee: Thierry Delprat
Fix For: 5.2.1
Sometimes logs show the given stacktrace:
2009-08-04 15:40:09,454 ERROR [STDERR] java.lang.NullPointerException
2009-08-04 15:40:09,462 ERROR [STDERR] at
org.nuxeo.ecm.webengine.model.impl.AbstractWebContext.getCookie(AbstractWebContext.java:292)
2009-08-04 15:40:09,462 ERROR [STDERR] at
org.nuxeo.theme.webengine.negotiation.engine.CookieValue.getOutcome(CookieValue.java:30)
2009-08-04 15:40:09,462 ERROR [STDERR] at
org.nuxeo.theme.negotiation.AbstractNegotiator.negotiate(AbstractNegotiator.java:61)
2009-08-04 15:40:09,462 ERROR [STDERR] at
org.nuxeo.theme.negotiation.AbstractNegotiator.getSpec(AbstractNegotiator.java:38)
2009-08-04 15:40:09,462 ERROR [STDERR] at
org.nuxeo.theme.webengine.fm.extensions.ThemeDirective.getThemeUrlAndSetupRequest(ThemeDirective.java:191)
2009-08-04 15:40:09,462 ERROR [STDERR] at
org.nuxeo.theme.webengine.fm.extensions.ThemeDirective.execute(ThemeDirective.java:92)
2009-08-04 15:40:09,462 ERROR [STDERR] at
freemarker.core.Environment.visit(Environment.java:261)
2009-08-04 15:40:09,462 ERROR [STDERR] at
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
2009-08-04 15:40:09,462 ERROR [STDERR] at
freemarker.core.Environment.visit(Environment.java:208)
2009-08-04 15:40:09,462 ERROR [STDERR] at
freemarker.core.Environment.process(Environment.java:188)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets