You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2014/11/30 02:12:16 UTC

spark git commit: Include the key name when failing on an invalid value.

Repository: spark
Updated Branches:
  refs/heads/master 317e114e1 -> 95290bf4c


Include the key name when failing on an invalid value.

Admittedly a really small tweak.

Author: Stephen Haberman <st...@exigencecorp.com>

Closes #3514 from stephenh/include-key-name-in-npe and squashes the following commits:

937740a [Stephen Haberman] Include the key name when failing on an invalid value.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/95290bf4
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/95290bf4
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/95290bf4

Branch: refs/heads/master
Commit: 95290bf4c4c786c95ba1ffdfe73bc61f6a0ee6b1
Parents: 317e114
Author: Stephen Haberman <st...@exigencecorp.com>
Authored: Sat Nov 29 20:12:05 2014 -0500
Committer: Patrick Wendell <pw...@gmail.com>
Committed: Sat Nov 29 20:12:05 2014 -0500

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/SparkConf.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/95290bf4/core/src/main/scala/org/apache/spark/SparkConf.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/SparkConf.scala b/core/src/main/scala/org/apache/spark/SparkConf.scala
index 4c6c86c..c14764f 100644
--- a/core/src/main/scala/org/apache/spark/SparkConf.scala
+++ b/core/src/main/scala/org/apache/spark/SparkConf.scala
@@ -61,7 +61,7 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging {
       throw new NullPointerException("null key")
     }
     if (value == null) {
-      throw new NullPointerException("null value")
+      throw new NullPointerException("null value for " + key)
     }
     settings(key) = value
     this


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org