[ 
https://issues.apache.org/jira/browse/SPARK-32631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17178680#comment-17178680
 ] 

Apache Spark commented on SPARK-32631:
--------------------------------------

User 'tianhanhu' has created a pull request for this issue:
https://github.com/apache/spark/pull/29447

> Handle Null error message in hive ThriftServer UI
> -------------------------------------------------
>
>                 Key: SPARK-32631
>                 URL: https://issues.apache.org/jira/browse/SPARK-32631
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Tianhan Hu
>            Priority: Major
>
> This fix is trying to prevent NullPointerException caused by Null error 
> message by wrapping the message with Option and using getOrElse to handle 
> Null value.
> The possible reason why the error message would be null is that java 
> Throwable allows the detailMessage to be null. However, in the render code we 
> assume that the error message would be be null and try to do indexOf() on the 
> string. Therefore, if some exception doesn't set the error message, it would 
> trigger NullPointerException in the hive ThriftServer UI.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to