[jira] [Created] (OFBIZ-10051) Fixing potential Nullpointer in ContentWorker.checkConditions()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-10051) Fixing potential Nullpointer in ContentWorker.checkConditions()

Nicolas Malin (Jira)
Dennis Balkir created OFBIZ-10051:
-------------------------------------

             Summary: Fixing potential Nullpointer in ContentWorker.checkConditions()
                 Key: OFBIZ-10051
                 URL: https://issues.apache.org/jira/browse/OFBIZ-10051
             Project: OFBiz
          Issue Type: Bug
          Components: content
    Affects Versions: Trunk
            Reporter: Dennis Balkir
            Priority: Minor


This potential Nullpointer was found while fixing find-bugs-errors in the file {{ContentWorker.java}}.

The method {{checkConditions}} is missing a proper null-check for the variable {{content}}, which is used frequently in it.
At some point though it might be possible for {{content}} to be null and this would cause multiple {{NullpointerException}} to be thrown.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)