Tianhan Hu created SPARK-32631: ---------------------------------- Summary: 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
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