You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by pd...@apache.org on 2021/08/16 07:41:07 UTC

[zeppelin] branch branch-0.9 updated: [ZEPPELIN-5489] Fix NullPointerException, if the InterpreterResult is null

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

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


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new d2f4e4e  [ZEPPELIN-5489] Fix NullPointerException, if the InterpreterResult is null
d2f4e4e is described below

commit d2f4e4eff167f5d736e1889107b196fe768859e2
Author: Philipp Dallig <ph...@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 <ph...@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)
    Signed-off-by: Philipp Dallig <ph...@gmail.com>
---
 .../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 {