1
0
Fork 0
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:
Marc-Andre Laperle 2020-09-28 22:50:32 -04:00
parent 5af949d656
commit 2cea3eba8b

View file

@ -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];