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
Signed-off-by: Fabio Manganiello <fabio@manganiello.tech>
  • Loading branch information
pawel-big-lebowski authored and blacklight committed Apr 4, 2024
1 parent 2c5bc2f commit d5cf25f
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 d5cf25f

Please sign in to comment.