a87935780e
We need some defensive coding here to avoid an analyzer crash. Fixes #46569. Bug: https://github.com/dart-lang/sdk/issues/46569 Change-Id: Ie51f7279af71ee36b94ad14e928b359288bc09e8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259242 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>