mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
add null check
This commit is contained in:
parent
ab823d3ee9
commit
7c539ef2eb
1 changed files with 3 additions and 1 deletions
|
|
@ -95,7 +95,9 @@ public class ShellInterpreter extends Interpreter {
|
|||
+ " return with exit value: " + exitVal);
|
||||
return new InterpreterResult(Code.SUCCESS, outStream.toString());
|
||||
} catch (ExecuteException e) {
|
||||
if (contextInterpreter.out.getCurrentOutput().toString().contains("GSS") && isGSSInit) {
|
||||
if (isGSSInit &&
|
||||
contextInterpreter.out != null &&
|
||||
contextInterpreter.out.getCurrentOutput().toString().contains("GSS")) {
|
||||
isGSSInit = false;
|
||||
if (!StringUtils.isAnyEmpty(getProperty("zeppelin.shell.auth.type"))) {
|
||||
ShellSecurityImpl.createSecureConfiguration(getProperty(), shell);
|
||||
|
|
|
|||
Loading…
Reference in a new issue