mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Nullcheck
This commit is contained in:
parent
72b22354fe
commit
dedf93f315
1 changed files with 5 additions and 0 deletions
|
|
@ -247,6 +247,11 @@ public class Paragraph extends Job implements Serializable, Cloneable {
|
|||
@Override
|
||||
protected boolean jobAbort() {
|
||||
Interpreter repl = getRepl(getRequiredReplName());
|
||||
if (repl == null) {
|
||||
// when interpreters are already destroyed
|
||||
return true;
|
||||
}
|
||||
|
||||
Scheduler scheduler = repl.getScheduler();
|
||||
if (scheduler == null) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue