Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-934

AbstractSlingRepository.java unbindLog() sets method scoped log to null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • JCR Base 2.0.4
    • JCR
    • None

    Description

      bundles/jcr/base/src/main/java/org/apache/sling/jcr/base/AbstractSlingRepository.java contains the following snippet:

      protected void unbindLog(LogService log) {
      if (this.log == log)

      { log = null; }


      }

      That sets the method scoped log to null, not the instance scoped this.log. I beleive it should look like:

      protected void unbindLog(LogService log) {
      if (this.log == log)

      { this.log = null; }


      }

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            stuartf Stuart Freeman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: