Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-418

Possible NPE while awaiting job execution termination

    Details

      Description

      In org.jberet.runtime.JobExecutionImpl#awaitTermination, the variable jobTerminationLatch could still be null despite the null check, since this method is typically invoked by the batch client running in different thread than the main job execution thread. The variable jobTerminationLatch is accessed by the batch client thread, and is also updated by the main job execution thread at the end of job execution.

      https://github.com/jberet/jsr352/blob/c0991d2c8b0471896956599428cbe1a90ef699f7/jberet-core/src/main/java/org/jberet/runtime/JobExecutionImpl.java#L137

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cfang Cheng Fang
                Reporter:
                cfang Cheng Fang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: