[ 
https://issues.apache.org/jira/browse/SPARK-51766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gengliang Wang resolved SPARK-51766.
------------------------------------
    Resolution: Duplicate

Duplicate with https://issues.apache.org/jira/browse/SPARK-46490

> 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: 4.0.0, 3.5.5
>            Reporter: Michael Zhang
>            Priority: Major
>
> 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