Commons Digester
  1. Commons Digester
  2. DIGESTER-122

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development