mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
modify null check to Preconditions
This commit is contained in:
parent
72f3e4f164
commit
af8a2d8ca5
1 changed files with 3 additions and 2 deletions
|
|
@ -953,8 +953,9 @@ public class InterpreterFactory implements InterpreterGroupFactory {
|
|||
|
||||
public void restart(String settingId, String noteId) {
|
||||
InterpreterSetting intpsetting = interpreterSettings.get(settingId);
|
||||
if (intpsetting != null &&
|
||||
noteIdIsExist(noteId) &&
|
||||
Preconditions.checkNotNull(intpsetting);
|
||||
|
||||
if (noteIdIsExist(noteId) &&
|
||||
intpsetting.getOption().isProcess()) {
|
||||
intpsetting.closeAndRemoveInterpreterGroup(noteId);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue