commit | d046448d00e21a83770d9c76298737a300ed1047 | [log] [tgz] |
---|---|---|
author | Brian Wilkerson <brianwilkerson@google.com> | Thu Jun 20 21:18:07 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Thu Jun 20 21:18:07 2019 +0000 |
tree | e5c767554eb1754dadc6c33cef0ffc68c7b74e51 | |
parent | a4b67bd6ce9c5a1b36653ec39e8dd827014b3cb7 [diff] |
Convert an NPE into an unimplemented notification Change-Id: Ic032f26d54d1e85a54ca21068988d4dd226f3879 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106946 Reviewed-by: Dan Rubel <danrubel@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/nnbd_migration/lib/src/graph_builder.dart b/pkg/nnbd_migration/lib/src/graph_builder.dart index 6f99c8a..fa47018 100644 --- a/pkg/nnbd_migration/lib/src/graph_builder.dart +++ b/pkg/nnbd_migration/lib/src/graph_builder.dart
@@ -433,6 +433,9 @@ } else { var typeArgumentType = _variables.decoratedTypeAnnotation( _source, node.typeArguments.arguments[0]); + if (typeArgumentType == null) { + _unimplemented(node, 'Could not compute type argument type'); + } for (var element in node.elements) { if (element is Expression) { _handleAssignment(typeArgumentType, element);