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

AbstractSlingRepositoryManager.stop throws NullPointerExceptions if invoked multiple times

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: JCR Base 3.1.4
    • Fix Version/s: JCR Base 3.1.6
    • Component/s: JCR
    • Labels:
      None

      Description

      The stop method has a check for the currentThread

              if ( startupThread != Thread.currentThread() ) {
                  waitForStartupThreadToComplete();
                  startupThread = null;
              }
      

      On the first invocation, the startupThread is not null, the if block is entered and the field is then set to null. On subsequent invocations, the condition will also be true, since startupThread == null, which will cause an NPE in the waitForStartupThreadToComplete method.

        Attachments

          Activity

            People

            • Assignee:
              rombert Robert Munteanu
              Reporter:
              rombert Robert Munteanu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m