Uploaded image for project: 'BatchEE'
  1. BatchEE
  2. BATCHEE-127

JobContext#isActive throws NPE when not active

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5-incubating
    • 0.5-incubating
    • batchee-extensions
    • None

    Description

      When calling isActive() on JobContextImpl while the context is not active the method should return false.

      The implementation of isActive() is in BaseContext

          public boolean isActive() {
              return currentKey() != null;
          }
      

      However the implementation of currentKey() in JobContextImpl does not return null but throws a NullPointerException when the context is not active yet.

      Attachments

        Activity

          People

            rsandtner Reinhard Sandtner
            cdirmeier Cornelius Dirmeier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: