[ https://issues.apache.org/jira/browse/SLING-988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Sedding updated SLING-988: --------------------------------- Attachment: org.apache.sling.api.resource.ResourceUtil.r780648.diff Patch based on r780648. > ResourceUtil.getValueMap() causes NPE > ------------------------------------- > > Key: SLING-988 > URL: https://issues.apache.org/jira/browse/SLING-988 > Project: Sling > Issue Type: Bug > Components: API > Affects Versions: API 2.0.4 > Reporter: Julian Sedding > Attachments: org.apache.sling.api.resource.ResourceUtil.r780648.diff > > > Calling ResourceUtil.getValueMap() with a null Resource should, according to > the javadoc, return an empty ValueMap. Calling it with null currently causes > a NullPointerException. > Attached patch fixes the issue and adds a test case for this scenario. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.