Index: pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart |
diff --git a/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart b/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart |
index 8df816e173d082a46600849502fb860835541284..a5e272012403dcdcd91dfb913032e970e698f610 100644 |
--- a/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart |
+++ b/pkg/dev_compiler/tool/input_sdk/private/js_mirrors.dart |
@@ -541,8 +541,8 @@ class JsVariableMirror extends JsMirror implements VariableMirror { |
: _symbol = symbol, |
_name = getName(symbol), |
type = reflectType(t), |
- metadata = |
- new List<InstanceMirror>.unmodifiable(annotations.map(reflect)); |
+ metadata = new List<InstanceMirror>.unmodifiable( |
+ annotations?.map(reflect) ?? []); |
JsVariableMirror._fromField(Symbol symbol, fieldInfo) |
: this._(symbol, _wrap(JS('', '#.type', fieldInfo)), |