MenuNode.getLabel() does not handle complex EL expressions correctly
--------------------------------------------------------------------

                 Key: TRINIDAD-718
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-718
             Project: MyFaces Trinidad
          Issue Type: Bug
            Reporter: Gary Kind


Private method _evalElStr(), which is called from MenuNode.getLabel(), in the 
case of a Resource Bundle EL expression, is used to insert a Unique Id in the 
EL expression to indentify the correct Resoure Bundle.  If the EL expression is 
not a Resource Bundle, the EL String is just passed on to be evaluated.  In the 
latter case, _bundleKey is null which seems to give the "replaceFirst" method 
of java.lang.String problems.  This results in an NPE, where the documentation 
says it should result in a PatternSyntaxException.  Checking for a null 
_bundleKey solves the problem.

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

Reply via email to