Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-122

Use of null value if debug is enabled in Digester.resolveEntity()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1, 2.0
    • Labels:
      None

      Description

      Here's the code:

      if (entityURL == null) {
      if (systemId == null) {
      // cannot resolve
      if (log.isDebugEnabled()) {
      log.debug(" Cannot resolve entity: '" + entityURL + "'");

      entityURL is known to be null and then it's used in the log message.

      This was detected by FindBugs.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ddillard David Dillard
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: