Prevent npe when constructor cannot be resolved

Change-Id: I956b52f6ba3192f87ef2b1a723d8123ebe2bf14d
Reviewed-on: https://dart-review.googlesource.com/63693
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Brian Wilkerson 2018-07-03 22:41:06 +00:00 committed by commit-bot@chromium.org
parent d50fa68176
commit 3c5fe3c7e4

View file

@ -415,7 +415,7 @@ class ResolutionApplier extends GeneralizingAstVisitor {
node.staticType = type;
node.constructorName.staticElement = constructor;
node.constructorName.type.type = constructor.returnType;
node.constructorName.type.type = type;
typeIdentifier.staticType = type;
classIdentifier.staticType = type;