[
https://issues.apache.org/jira/browse/OFBIZ-4399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Le Roux closed OFBIZ-4399.
----------------------------------
Resolution: Not A Problem
Assignee: Adrian Crum
I agree with Adrian, putIfAbsent would throw a NullPointerException.
BTW, another if w/out braces in putIfAbsent :p
> Possible null pointer exception
> -------------------------------
>
> Key: OFBIZ-4399
> URL: https://issues.apache.org/jira/browse/OFBIZ-4399
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Reporter: Dimitri Unruh
> Assignee: Adrian Crum
> Priority: Minor
> Attachments: OFBIZ-4399.patch
>
>
> Hi everybody,
> in UtilCache.getNextDefaultIndex(String cacheName) the return value the
> curInd object is dereferenced without a null check.
> This may lead to a NullPointerException when the code is executed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira