This is an automated email from the ASF dual-hosted git repository. pdallig 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 d896163 [ZEPPELIN-5489] Fix NullPointerException, if the InterpreterResult is null d896163 is described below commit d8961637300450e504affa6e27832bd7fc10e5a9 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 --- .../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 {