Skip to content

Commit

Permalink
fixed the NPE caused by closures being cleaned before being passed in…
Browse files Browse the repository at this point in the history
…to the aggregate function
  • Loading branch information
dorx committed Jun 10, 2014
1 parent 7e1a481 commit 46f6c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/rdd/RDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ abstract class RDD[T: ClassTag](

/** User code that created this RDD (e.g. `textFile`, `parallelize`). */
@transient private[spark] val creationSiteInfo = Utils.getCallSiteInfo
private[spark] def getCreationSite: String = creationSiteInfo.toString
private[spark] def getCreationSite: String = Option(creationSiteInfo).getOrElse("").toString

private[spark] def elementClassTag: ClassTag[T] = classTag[T]

Expand Down

0 comments on commit 46f6c8c

Please sign in to comment.