mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Prevent NullPointerException if "gatewayServer" does not exist
This commit is contained in:
parent
794d4b385f
commit
ccbf7efa56
1 changed files with 4 additions and 2 deletions
|
|
@ -125,8 +125,10 @@ public class PythonInterpreter extends Interpreter {
|
|||
|
||||
logger.info("closing Python interpreter .....");
|
||||
try {
|
||||
process.close();
|
||||
gatewayServer.shutdown();
|
||||
if (process != null)
|
||||
process.close();
|
||||
if (gatewayServer != null)
|
||||
gatewayServer.shutdown();
|
||||
} catch (IOException e) {
|
||||
logger.error("Can't close the interpreter", e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue