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: 2.0.0-alpha, 1.0.0
Reporter: Michael Freedman
Assignee: Michael Freedman
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.