[
http://jira.magnolia-cms.com/browse/MGNLSTK-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28962#action_28962
]
Hudson CI server commented on MGNLSTK-650:
------------------------------------------
Integrated in !http://hudson.magnolia-cms.com/images/16x16/blue.gif!
[standard-templating-kit
#2651|http://hudson.magnolia-cms.com/job/standard-templating-kit/2651/]
MGNLSTK-650
To InternalTeaserModel class added condition to test null value of content.
Also added junit to test this case.
> 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: <[email protected]>
----------------------------------------------------------------