[ http://jira.magnolia.info/browse/MAGNOLIA-834?page=comments#action_11845 ]
Philipp Bracher commented on MAGNOLIA-834: ------------------------------------------ Attention. This exception implies that the Context is NOT set properly. If a request does not pass the EntryServlet (direct jsp calls for example) the servlet must set the context itself --> see ContextSensitiveServlet For convenience I will make a MgnlContext.initAsWebContext(request) method. > createVersion failed because MgnlContext.getUser() is null > ---------------------------------------------------------- > > Key: MAGNOLIA-834 > URL: http://jira.magnolia.info/browse/MAGNOLIA-834 > Project: magnolia > Type: Bug > Components: core > Versions: 3.0 Beta 1 > Environment: M3.0 > Reporter: Ralf Hirning > Assignee: Sameer Charles > Priority: Blocker > > > If I want to create a version using Content.addVersion I get an > java.lang.NullPointerException because in > VersionManager.createVersion(Content node, Rule rule) line 173: > versionedNode.getMetaData().setProperty(MetaData.VERSION_USER, > MgnlContext.getUser().getName()); > MgnlContext.getUser() delivers null -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
