Skip to content

Commit

Permalink
[HotFix] Fix the NullPointerException when modifying the `self-opti…
Browse files Browse the repository at this point in the history
…mizing.enabled` (#2388)

fix NPE
  • Loading branch information
wangtaohz authored Dec 1, 2023
1 parent a6c04bf commit dd316d4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public void handleConfigChanged(TableRuntime tableRuntime, TableConfiguration or
if (originalConfig.getOptimizingConfig().isEnabled()
&& !tableRuntime.getTableConfiguration().getOptimizingConfig().isEnabled()) {
OptimizingProcess optimizingProcess = tableRuntime.getOptimizingProcess();
if (optimizingProcess.getStatus() == OptimizingProcess.Status.RUNNING) {
if (optimizingProcess != null
&& optimizingProcess.getStatus() == OptimizingProcess.Status.RUNNING) {
optimizingProcess.close();
}
}
Expand Down

0 comments on commit dd316d4

Please sign in to comment.