Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10051

Fixing potential Nullpointer in ContentWorker.checkConditions()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 17.12.01
    • Component/s: content
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              mbrohl Michael Brohl
              Reporter:
              Dennis Balkir Dennis Balkir
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: