| Index: compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| index fb429e3d58656ab743066b751dd334f82fdcfd39..e6cccc443f6cd732bfaadd5f75318565596f357f 100644
|
| --- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| +++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| @@ -4169,7 +4169,7 @@ public class DartParser extends CompletionHooksParserBase {
|
| return done(new DartSyntheticErrorIdentifier());
|
| }
|
| DartIdentifier identifier;
|
| - if (expect(Token.IDENTIFIER)) {
|
| + if (expect(Token.IDENTIFIER) && ctx.getTokenString() != null) {
|
| identifier = new DartIdentifier(ctx.getTokenString());
|
| } else {
|
| identifier = new DartSyntheticErrorIdentifier();
|
|
|