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: Philipp Bärfuss


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: <[email protected]>
----------------------------------------------------------------

Reply via email to