--- a/src/Pure/System/isabelle_system.scala Mon Oct 03 16:15:59 2016 +0200
+++ b/src/Pure/System/isabelle_system.scala Mon Oct 03 16:50:29 2016 +0200
@@ -260,7 +260,10 @@
val proc = new ProcessBuilder
proc.command(command_line:_*) // fragile on Windows
if (cwd != null) proc.directory(cwd)
- proc.environment.clear; for ((x, y) <- env) proc.environment.put(x, y)
+ if (env != null) {
+ proc.environment.clear
+ for ((x, y) <- env) proc.environment.put(x, y)
+ }
proc.redirectErrorStream(redirect)
proc.start
}