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

(cherry picked from commit dd316d4)
Signed-off-by: zhoujinsong <463763777@qq.com>
  • Loading branch information
wangtaohz authored and zhoujinsong committed Dec 19, 2023
1 parent bc2cfc0 commit bdd8333
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 bdd8333

Please sign in to comment.