Michael Zhang created SPARK-51766:
-------------------------------------

             Summary: Add default error class to prevent potential NPE
                 Key: SPARK-51766
                 URL: https://issues.apache.org/jira/browse/SPARK-51766
             Project: Spark
          Issue Type: Improvement
          Components: Spark Core
    Affects Versions: 3.5.5, 4.0.0
            Reporter: Michael Zhang


When getting the error condition of certain SparkException, it is possible to 
return null. 
[https://github.com/apache/spark/blob/99b7d2a7441bf1fb5aeb84b6f5094431494e4b9e/common/utils/src/main/scala/org/apache/spark/SparkException.scala#L182]
 

We should use a default error classes so that NPE's can't happen when 
processing error conditions during exception handling just to be safe.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to