Skip to content

Commit a1468dc

Browse files
author
Andrew Or
committed
Fix null check
1 parent f496bf3 commit a1468dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/ui/scope/RDDOperationGraph.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private[ui] object RDDOperationGraph extends Logging {
101101
val node = nodes.getOrElseUpdate(
102102
rdd.id, RDDOperationNode(rdd.id, rdd.name, rdd.storageLevel != StorageLevel.NONE))
103103

104-
if (rdd.scope == null) {
104+
if (rdd.scope.isEmpty) {
105105
// This RDD has no encompassing scope, so we put it directly in the root cluster
106106
// This should happen only if an RDD is instantiated outside of a public RDD API
107107
rootCluster.attachChildNode(node)

0 commit comments

Comments
 (0)