mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
Bug 453398: NPE in SupplierBasedCdtVariableSubstitutor ("Expand
env.variable refs") Change-Id: I4ff9f5191ac5ffe5e5b34b8aba7758aa4965b213 Signed-off-by: Andrew Gvozdev <angvoz.dev@gmail.com> Reviewed-on: https://git.eclipse.org/r/39047 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> Reviewed-by: Doug Schaefer <dschaefer@qnx.com> Tested-by: Hudson CI
This commit is contained in:
parent
765d9bf16e
commit
daa20f98b4
1 changed files with 5 additions and 1 deletions
|
@ -285,7 +285,11 @@ public class SupplierBasedCdtVariableSubstitutor implements IVariableSubstitutor
|
|||
}
|
||||
|
||||
protected ResolvedMacro resolveMacro(String macroName) throws CdtVariableException{
|
||||
return resolveMacro(SupplierBasedCdtVariableManager.getVariable(macroName,fContextInfo,true));
|
||||
ICdtVariable variable = SupplierBasedCdtVariableManager.getVariable(macroName,fContextInfo,true);
|
||||
if (variable == null)
|
||||
return null;
|
||||
|
||||
return resolveMacro(variable);
|
||||
}
|
||||
|
||||
protected ResolvedMacro resolveParentMacro(MacroDescriptor macroDes) throws CdtVariableException{
|
||||
|
|
Loading…
Add table
Reference in a new issue