Skip to content
Snippets Groups Projects
Commit 95290bf4 authored by Stephen Haberman's avatar Stephen Haberman Committed by Patrick Wendell
Browse files

Include the key name when failing on an invalid value.

Admittedly a really small tweak.

Author: Stephen Haberman <stephen@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.
parent 317e114e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment