1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Patch for Devin Steffler.

Bug 97301  	flattenLocationsToFile returns null causing NPE in indexer
This commit is contained in:
John Camelon 2005-05-30 18:26:49 +00:00
parent 7f446a4ff5
commit 1a9c0d8eb7

View file

@ -2585,15 +2585,16 @@ abstract class BaseScanner implements IScanner {
buffer, start, len));
branchState(BRANCH_IF);
processIf(pos, pos + start + len, true); // fix 86870, process IF before skipping the condition and only process it once
if (expressionEvaluator.evaluate(buffer, start, len,
definitions,
getLineNumber(bufferPos[bufferStackPos]),
getCurrentFilename()) == 0) {
processIf(pos, bufferPos[bufferStackPos], true);
skipOverConditionalCode(true);
if (isLimitReached())
handleInvalidCompletion();
} else {
processIf(pos, bufferPos[bufferStackPos], false);
}
return;
case ppElse: