InternalLinkModel throws NPE when referenced node doesn't exist (anymore) and
link title is empty
-------------------------------------------------------------------------------------------------
Key: MGNLSTK-698
URL: http://jira.magnolia-cms.com/browse/MGNLSTK-698
Project: Magnolia Standard Templating Kit
Issue Type: Bug
Components: paragraphs
Affects Versions: 1.3.5
Reporter: Vivian Steller
Assignee: Philipp Bärfuss
To reproduce:
# create an internal page link referencing page X, do not enter a link title
# delete the referenced page X
# reload the page where you entered the link
Result:
Freemarker Exception that states a NullPointerException on line 82:
String pageTitle = getLinkNode().getTitle();
since getLinkNode() now obviously returns null
Expected Result:
A nice message showing that the result page doesn't exist anymore (in edit
mode). In preview mode the link shouldn't be rendered at all in these cas
es.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------