[ 
https://issues.apache.org/jira/browse/OAK-5357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Ryan updated OAK-5357:
---------------------------
    Attachment: OAK-5357.1.patch

Attached OAK-5357.1.patch that adds null checks.  Each function throws 
IllegalArgumentException if argument is null which is more in line with other 
argument failures.  Unit tests updated.

> StringUtils conversion functions can throw NullPointerException
> ---------------------------------------------------------------
>
>                 Key: OAK-5357
>                 URL: https://issues.apache.org/jira/browse/OAK-5357
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: commons
>    Affects Versions: 1.5.16
>            Reporter: Matt Ryan
>            Priority: Minor
>         Attachments: OAK-5357.1.patch
>
>
> In the {{StringUtils}} class in {{oak-commons}}, the methods 
> {{convertBytesToHex()}} and {{convertHexToBytes()}} can throw 
> NullPointerException if the argument passed in is null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to