myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Freedman (JIRA)" <...@myfaces.apache.org>
Subject [jira] Resolved: (PORTLETBRIDGE-157) NullPointerException from Bridge encodeActionUrl when use portlet: syntax
Date Thu, 29 Jul 2010 16:04:16 GMT

     [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Freedman resolved PORTLETBRIDGE-157.
--------------------------------------------

    Fix Version/s: 1.0.1
                   2.0.0-beta
       Resolution: Fixed

Changed the if statement to check for s1==null not s==null

> NullPointerException from Bridge encodeActionUrl when use portlet: syntax
> -------------------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-157
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-157
>             Project: MyFaces Portlet Bridge
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 2.0.0-alpha
>            Reporter: Michael Freedman
>            Assignee: Michael Freedman
>             Fix For: 1.0.1, 2.0.0-beta
>
>
> When you use the portlet: syntax in an url passed to encodeActionURL the bridge determines
whether its a faces view target by looking one of 2 special query string parameters (one indicates
the viewId the other the viewPath).  If there is no viewId and no viewPath a nullPointerException
is thrown.  This is because the if statement surrounding the viewPath check looks to see if
the viewId string is null before derefercing the viewPath string.
> I.e. the code is
>       else if (s != null && s1.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))
>  
> but should be
>       else if (s1 != null && s1.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message