mridulm commented on code in PR #40687:
URL: https://github.com/apache/spark/pull/40687#discussion_r1160002561


##########
core/src/main/scala/org/apache/spark/util/JsonProtocol.scala:
##########
@@ -1357,7 +1357,7 @@ private[spark] object JsonProtocol {
           message.getOrElse("Unknown reason"))
       case `exceptionFailure` =>
         val className = json.get("Class Name").extractString
-        val description = json.get("Description").extractString
+        val description = 
jsonOption(json.get("Description")).map(_.extractString).orNull

Review Comment:
   When can this be null ?
   (This was the description i was referring to in my comment earlier - should 
have made it here, instead of general comment :-( )



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to