mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug 567169 - Detection for VS 2017 and VS2019 toolchain
Fix a NPE I just introduced. This method gets called before things are initialized, just like before. I prefer being conservative by restoring previous behavior and not change too many things by revising the initialization sequence at the same time of other bigger changes. Change-Id: I1096621e29b51c67d218c7e55eaf3ebe29858d07 Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
This commit is contained in:
parent
5af949d656
commit
2cea3eba8b
1 changed files with 3 additions and 1 deletions
|
@ -100,7 +100,9 @@ public class WinEnvironmentVariableSupplier
|
|||
}
|
||||
|
||||
public static IPath[] getIncludePath() {
|
||||
// Include paths
|
||||
if (envvars == null)
|
||||
return new IPath[0];
|
||||
|
||||
IBuildEnvironmentVariable var = envvars.get("INCLUDE"); //$NON-NLS-1$
|
||||
if (var == null)
|
||||
return new IPath[0];
|
||||
|
|
Loading…
Add table
Reference in a new issue