Matt Ryan created OAK-4830:

             Summary: StringUtils.estimateMemoryUsage() can throw 
                 Key: OAK-4830
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: commons
    Affects Versions: 1.5.10
            Reporter: Matt Ryan

The {{estimateMemoryUsage()}} method in {{StringUtils}} in {{oak-commons}} 
doesn't check if the string being passed in is null, so there's potential to 
throw a {{NullPointerException}} if called with a null string.

Suggest it returns 0 in this case.  I have a patch ready.

This message was sent by Atlassian JIRA

Reply via email to