| Index: pkg/analyzer/lib/src/task/dart.dart
 | 
| diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
 | 
| index d842d2fde49d3a9e798f6b7b7394a251398e7ebf..05528d7f03960538894c15a1bc7dd2c17eab31bf 100644
 | 
| --- a/pkg/analyzer/lib/src/task/dart.dart
 | 
| +++ b/pkg/analyzer/lib/src/task/dart.dart
 | 
| @@ -3745,7 +3745,7 @@ class InferStaticVariableTypeTask extends InferStaticVariableTask {
 | 
|        // Record the type of the variable.
 | 
|        //
 | 
|        DartType newType = initializer.staticType;
 | 
| -      if (newType == null || newType.isBottom) {
 | 
| +      if (newType == null || newType.isBottom || newType.isDartCoreNull) {
 | 
|          newType = typeProvider.dynamicType;
 | 
|        }
 | 
|        setFieldType(variable, newType);
 | 
| 
 |