You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2016/09/21 08:41:20 UTC
[jira] [Resolved] (OAK-4830) StringUtils.estimateMemoryUsage() can
throw NullPointerException
[ https://issues.apache.org/jira/browse/OAK-4830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcel Reutegger resolved OAK-4830.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5.11
Thanks for the patch. I applied it to trunk: http://svn.apache.org/r1761696
> StringUtils.estimateMemoryUsage() can throw NullPointerException
> ----------------------------------------------------------------
>
> Key: OAK-4830
> URL: https://issues.apache.org/jira/browse/OAK-4830
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: commons
> Affects Versions: 1.5.10
> Reporter: Matt Ryan
> Assignee: Marcel Reutegger
> Fix For: 1.5.11
>
> Attachments: OAK-4830.1.patch
>
>
> 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
(v6.3.4#6332)