mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
fix for NPE in LR parser
This commit is contained in:
parent
c911a780f7
commit
6540729131
1 changed files with 5 additions and 3 deletions
|
@ -283,9 +283,11 @@ public class CPreprocessor implements ILexerLog, IScanner, IAdaptable {
|
|||
}
|
||||
|
||||
IMacro[] toAdd = config.getAdditionalMacros();
|
||||
for (final IMacro macro : toAdd) {
|
||||
addMacroDefinition(macro.getSignature(), macro.getExpansion());
|
||||
}
|
||||
if(toAdd != null) {
|
||||
for (final IMacro macro : toAdd) {
|
||||
addMacroDefinition(macro.getSignature(), macro.getExpansion());
|
||||
}
|
||||
}
|
||||
|
||||
final Map<String, String> macroDict= info.getDefinedSymbols();
|
||||
if (macroDict != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue