Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8243

Regression: NPE when a service is not scheduled to run

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: EJBCA 7.0.1.4
    • Fix Version/s: EJBCA 7.2.0
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Customer
    • Sprint:
      EJBCA Team Alice - 2019 w21

      Description

       

      Caused by: java.lang.NullPointerException
              at org.ejbca.core.ejb.services.ServiceSessionBean.canWorkerRun(ServiceSessionBean.java:579) [ejbca-ejb.jar:]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_201]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_201]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_201]
      

       
      It's a regression from ECA-8170. "if(!serviceSession.canWorkerRun(worker)) {" is called even if worker == null.
       
      That snippet should be after "if (worker != null) {"
       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mikek Mike Agrenius Kushner
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Henrik Sunmark
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified