[ http://jira.magnolia-cms.com/browse/MGNLSTK-650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on MGNLSTK-650 started by Ondřej Chytil. > InternalTeaserModel throws NPE when target does not exist (anymore) > ------------------------------------------------------------------- > > Key: MGNLSTK-650 > URL: http://jira.magnolia-cms.com/browse/MGNLSTK-650 > Project: Magnolia Standard Templating Kit > Issue Type: Bug > Components: paragraphs > Reporter: Bert Leunis > Assignee: Ondřej Chytil > Attachments: standard-templating-kit-parent.patch > > > Using STK we created a teaser, using the > info.magnolia.module.templatingkit.paragraphs.InternalTeaserModel. If the > target page of the teaser is deleted or moved, a NPE is thrown from the > findImage() method. The calling method is getImage(): > > Content target = getTarget(); > image = findImage(target); > > If the target == null, findImage() should not be called. -- 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: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------