jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Ryan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-5357) StringUtils conversion functions can throw NullPointerException
Date Tue, 20 Dec 2016 22:07:58 GMT

     [ 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)

Mime
View raw message