| Index: sdk/lib/_internal/compiler/implementation/tree/nodes.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
|
| index 505d2835c645d091d73ba8760fb34b487fc28345..5bb147e3b8d9ecf4beea419b4cc7539be7637bce 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
|
| @@ -667,8 +667,10 @@ class For extends Loop {
|
| For asFor() => this;
|
|
|
| Expression get condition {
|
| - if (conditionStatement is ExpressionStatement) {
|
| - return conditionStatement.asExpressionStatement().expression;
|
| + ExpressionStatement expressionStatement =
|
| + conditionStatement.asExpressionStatement();
|
| + if (expressionStatement != null) {
|
| + return expressionStatement.expression;
|
| } else {
|
| return null;
|
| }
|
|
|