1
0
Fork 0
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:
Mike Kucera 2008-05-22 18:42:31 +00:00
parent c911a780f7
commit 6540729131

View file

@ -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) {