Github user abellina commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21809#discussion_r217106065
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala ---
    @@ -182,6 +197,15 @@ private[ui] class StagePage(parent: StagesTab, store: 
AppStatusStore) extends We
                   {Utils.bytesToString(stageData.diskBytesSpilled)}
                 </li>
               }}
    +          {if (!stageJobIds.isEmpty) {
    --- End diff --
    
    This could throw an NPE if `stageDataTuple` is `None`
    
    ```
    scala> var x:Seq[Int] = null
    x: Seq[Int] = null
    
    scala> x.isEmpty
    java.lang.NullPointerException
    ```


---

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

Reply via email to