You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2020/11/19 03:04:39 UTC
[zeppelin] branch master updated: [hotfix] NPE when running all
paragraphs
This is an automated email from the ASF dual-hosted git repository.
zjffdu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push:
new 60388c9 [hotfix] NPE when running all paragraphs
60388c9 is described below
commit 60388c9c1a91e8d6c924bcb4422e693b0288b530
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Thu Nov 19 11:03:58 2020 +0800
[hotfix] NPE when running all paragraphs
---
.../src/main/java/org/apache/zeppelin/service/NotebookService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java b/zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java
index 917be9e..4a7db3f 100644
--- a/zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java
+++ b/zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java
@@ -429,7 +429,7 @@ public class NotebookService {
// also stop execution when user code in a paragraph fails
Paragraph p = note.getParagraph(paragraphId);
InterpreterResult result = p.getReturn();
- if (result.code() == ERROR) {
+ if (result != null && result.code() == ERROR) {
return false;
}
} catch (Exception e) {