| Index: pkg/analyzer/lib/src/task/strong/checker.dart
|
| diff --git a/pkg/analyzer/lib/src/task/strong/checker.dart b/pkg/analyzer/lib/src/task/strong/checker.dart
|
| index d557eb244e0f334d97b125182e4a8d3ad138eadd..0ece1c740890f128e6c53b1c058224a5231dc269 100644
|
| --- a/pkg/analyzer/lib/src/task/strong/checker.dart
|
| +++ b/pkg/analyzer/lib/src/task/strong/checker.dart
|
| @@ -614,7 +614,7 @@ class CodeChecker extends RecursiveAstVisitor {
|
| return;
|
| }
|
| InterfaceType futureType = rules.provider.futureType;
|
| - DartType actualType = expression.staticType;
|
| + DartType actualType = expression?.staticType;
|
| if (body.isAsynchronous &&
|
| !body.isGenerator &&
|
| actualType is InterfaceType &&
|
|
|