Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.0.0, 2.0.0-alpha
-
None
-
None
Description
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))