[
https://issues.apache.org/jira/browse/MYFACES-2469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795368#action_12795368
]
Matthias Weßendorf commented on MYFACES-2469:
---------------------------------------------
I swapped in the RI (binary, just to execute my test with it)
Result:
It just renders this as text (instead of a link)
<h:link outcome="invalidOutcome">Blah Foo Bar </h:link>
=> <span>Blah Foo Bar</span>
This does not sound wrong :-)
> Invalid outcome gives NPE
> -------------------------
>
> Key: MYFACES-2469
> URL: https://issues.apache.org/jira/browse/MYFACES-2469
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha
> Reporter: Matthias Weßendorf
> Attachments: invalidOutcome.diff
>
>
> when you have an invalid outcome, like:
> <h:link outcome="foo">Blah</link>, but there is no foo.xhtml, we see an NPE
> java.lang.NullPointerException
> at
> org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils.getOutcomeTargetLinkHref(HtmlRendererUtils.java:1815)
> at
> org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderOutcomeLinkStart(HtmlLinkRendererBase.java:742)
> at
> org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:121)
> at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:430)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.