[
https://issues.apache.org/jira/browse/TRINIDAD-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adam Winer updated TRINIDAD-102:
--------------------------------
Status: Open (was: Patch Available)
> 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.