[ http://jira.magnolia.info/browse/MAGNOLIA-834?page=all ]
Sameer Charles resolved MAGNOLIA-834:
-------------------------------------
Resolution: Fixed
temporary fix on SVN, please test it
I will open a new issue to implement Anonymous.
> 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
----------------------------------------------------------------