This is an automated email from the ASF dual-hosted git repository.

zjffdu pushed a commit to branch branch-0.10
in repository https://gitbox.apache.org/repos/asf/zeppelin.git

commit 264d1acf7c68f7972a3e280164421c57bf81619a
Author: Philipp Dallig <philipp.dal...@gmail.com>
AuthorDate: Fri Aug 13 09:54:30 2021 +0200

    [ZEPPELIN-5489] Fix NullPointerException, if the InterpreterResult is null
    
    ### What is this PR for?
    This PR fixes a NullPointerException if the InterpreterResult is `null`.
    
    ### What type of PR is it?
    Bug Fix
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/ZEPPELIN-5489
    
    ### How should this be tested?
    * via CI
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: Philipp Dallig <philipp.dal...@gmail.com>
    
    Closes #4205 from Reamer/ApiNullPointer and squashes the following commits:
    
    550f7a4e4 [Philipp Dallig] Fix NullPointerException, if the 
InterpreterResult is null
    
    (cherry picked from commit d8961637300450e504affa6e27832bd7fc10e5a9)
---
 .../main/java/org/apache/zeppelin/rest/message/ParagraphJobStatus.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/message/ParagraphJobStatus.java
 
b/zeppelin-server/src/main/java/org/apache/zeppelin/rest/message/ParagraphJobStatus.java
index c9caf62..de09d96 100644
--- 
a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/message/ParagraphJobStatus.java
+++ 
b/zeppelin-server/src/main/java/org/apache/zeppelin/rest/message/ParagraphJobStatus.java
@@ -46,7 +46,7 @@ public class ParagraphJobStatus {
         if (!StringUtils.isBlank(p.getErrorMessage())) {
           this.errorMessage = p.getErrorMessage();
         } else {
-          this.errorMessage = p.getReturn().toString();
+          this.errorMessage = String.valueOf(p.getReturn());
         }
       }
     } else {

Reply via email to