mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
Bug 529121 - NPE fix for projects created with CMake
Not sure what changed but the launcher for these projects is now returning null for an environment. Added a null check. Change-Id: I05c94bb77f951f417577d0c2a3e3b4b6b996214b
This commit is contained in:
parent
a293032938
commit
be9c1b8338
1 changed files with 3 additions and 1 deletions
|
@ -246,7 +246,9 @@ public class MakeBuilder extends ACBuilder {
|
|||
if (info.appendEnvironment()) {
|
||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||
Map<String, String> env = (Map)launcher.getEnvironment();
|
||||
envMap.putAll(env);
|
||||
if (env != null) {
|
||||
envMap.putAll(env);
|
||||
}
|
||||
}
|
||||
envMap.putAll(info.getExpandedEnvironment());
|
||||
return envMap;
|
||||
|
|
Loading…
Add table
Reference in a new issue