Attempt to get the value of a custom property from a node that has no custom
properties causes NPE
--------------------------------------------------------------------------------------------------
Key: TRINIDAD-102
URL: https://issues.apache.org/jira/browse/TRINIDAD-102
Project: MyFaces Trinidad
Issue Type: Bug
Reporter: Gary Kind
Attachments: trunk.patch
If XMLMenuModel.getCustomProperty() is called, the code gets a map from the
node that contains its custom properties. If the node has no custom properties,
the map returned is null. That case is not checked for, assuming the map to be
valid and non-empty, causing an NPE. The attached patch file fixes this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.