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);