Skip to content
Snippets Groups Projects
Commit feddd253 authored by Mridul Muralidharan's avatar Mridul Muralidharan
Browse files

Filter out nulls - prevent NPE

parent 87540a7b
No related branches found
No related tags found
No related merge requests found
...@@ -537,6 +537,8 @@ class SparkContext( ...@@ -537,6 +537,8 @@ class SparkContext(
* filesystems), or an HTTP, HTTPS or FTP URI. * filesystems), or an HTTP, HTTPS or FTP URI.
*/ */
def addJar(path: String) { def addJar(path: String) {
// weird - debug why this is happening.
if (null == path) return
val uri = new URI(path) val uri = new URI(path)
val key = uri.getScheme match { val key = uri.getScheme match {
case null | "file" => env.httpFileServer.addJar(new File(uri.getPath)) case null | "file" => env.httpFileServer.addJar(new File(uri.getPath))
......
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