mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 20:35:38 +02:00
bug 407502: NPE when I open Make Target View
This commit is contained in:
parent
bd43cfa615
commit
07341495e4
1 changed files with 6 additions and 0 deletions
|
@ -138,11 +138,17 @@ public class EnvironmentVariableManagerToolChain extends EnvironmentVariableMana
|
|||
}
|
||||
@Override
|
||||
public ICdtVariable getVariable(String macroName, IVariableContextInfo context) {
|
||||
if (toolchainSupplier == null) {
|
||||
return null;
|
||||
}
|
||||
IEnvironmentVariable var = toolchainSupplier.getVariable(macroName, null, ManagedBuildManager.getEnvironmentVariableProvider());
|
||||
return CdtVariableManager.fEnvironmentMacroSupplier.createBuildMacro(var);
|
||||
}
|
||||
@Override
|
||||
public ICdtVariable[] getVariables(IVariableContextInfo context) {
|
||||
if (toolchainSupplier == null) {
|
||||
return null;
|
||||
}
|
||||
IEnvironmentVariable[] vars = toolchainSupplier.getVariables(null, ManagedBuildManager.getEnvironmentVariableProvider());
|
||||
if (vars != null) {
|
||||
ICdtVariable[] cdtVars = new ICdtVariable[vars.length];
|
||||
|
|
Loading…
Add table
Reference in a new issue