diff --git a/source/dub/package_.d b/source/dub/package_.d index 24717fb..a78eb54 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -302,7 +302,7 @@ if( !this.copyright.empty ) ret.copyright = this.copyright; if( !this.license.empty ) ret.license = this.license; if( !this.ddoxFilterArgs.empty ) ret["-ddoxFilterArgs"] = this.ddoxFilterArgs.serializeToJson(); - if( this.dependencies ){ + if( this.dependencies !is null ){ auto deps = Json.EmptyObject; foreach( pack, d; this.dependencies ){ if( d.path.empty && !d.optional ){ diff --git a/source/dub/utils.d b/source/dub/utils.d index 8bb3b78..8df68f8 100644 --- a/source/dub/utils.d +++ b/source/dub/utils.d @@ -78,7 +78,7 @@ foreach(cmd; commands){ logDebug("Running %s", cmd); Pid pid; - if( env ) pid = spawnShell(cmd, env); + if( env !is null ) pid = spawnShell(cmd, env); else pid = spawnShell(cmd); auto exitcode = pid.wait(); enforce(exitcode == 0, "Command failed with exit code "~to!string(exitcode));