mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
Fixed NPE.
This commit is contained in:
parent
32f21e3778
commit
af90f84dd0
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ final class ScannerContext {
|
|||
*/
|
||||
public CodeState setBranchEndState(Conditional cond, boolean withinExpansion, int offset) {
|
||||
// implicit state change
|
||||
CodeState newState = cond.fInitialState;
|
||||
CodeState newState = cond != null ? cond.fInitialState : CodeState.eActive;
|
||||
changeState(newState, BranchKind.eEnd, withinExpansion, offset);
|
||||
return newState;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue