Skip to content

Commit

Permalink
Spark - prevent NPE if context is null (OpenLineage#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-big-lebowski authored and fafnirZ committed Jul 3, 2024
1 parent 52b0e74 commit 2d8f528
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ public void onJobEnd(SparkListenerJobEnd jobEnd) {
ExecutionContext context = rddExecutionRegistry.remove(jobEnd.jobId());
circuitBreaker.run(
() -> {
context.end(jobEnd);
if (context != null) {
context.end(jobEnd);
}
return null;
});
if (sparkVersion.startsWith("3")) {
Expand Down

0 comments on commit 2d8f528

Please sign in to comment.