You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org> on 2009/12/30 19:04:29 UTC

[jira] Created: (MYFACES-2469) Invalid outcome gives NPE

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.


[jira] Commented: (MYFACES-2469) Invalid outcome gives NPE

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ 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.


[jira] Resolved: (MYFACES-2469) Invalid outcome gives NPE

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf resolved MYFACES-2469.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-alpha-2

> 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
>             Fix For: 2.0.0-alpha-2
>
>         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.