![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
4.5.7 |
|
Assignee:
|
Unassigned |
|
Created:
|
23/May/13 12:41 PM
|
|
Description:
|
To follow the contract of Node.getProperty() it must not return null. When it does this leads to a NPE.
Here's a stacktrace for attempting to find a missing mgnl:template property.
Caused by: java.lang.NullPointerException
at info.magnolia.jcr.wrapper.DelegatePropertyWrapper.getString(DelegatePropertyWrapper.java:163)
at info.magnolia.cms.core.MetaData.getStringProperty(MetaData.java:408)
at info.magnolia.cms.core.MetaData.getTemplate(MetaData.java:322)
In 4.5 the call ends up in info.magnolia.cms.core.NonExistingNodeData#getJCRProperty() which always returns null.
In 5.0 i believe this doesn't happen because info.magnolia.cms.i18n.AbstractI18nContentSupport#getProperty doesn't seem to ever return null. Please double-check to make sure.
|
|
Project:
|
Magnolia
|
|
Priority:
|
Neutral
|
|
Reporter:
|
Tobias Mattsson
|
|
Security Level:
|
Public |
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------