Fix an npe (issue 34428)

Change-Id: Ibff06223efd5b2f9035e40b9d0925404cb5cc032
Reviewed-on: https://dart-review.googlesource.com/74301
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Brian Wilkerson 2018-09-11 13:56:33 +00:00 committed by commit-bot@chromium.org
parent e5296d5adb
commit c568c9379f

View file

@ -1797,7 +1797,7 @@ class FixProcessor {
if (target is Identifier) {
Identifier targetIdentifier = target;
Element targetElement = targetIdentifier.staticElement;
staticModifier = targetElement.kind == ElementKind.CLASS;
staticModifier = targetElement?.kind == ElementKind.CLASS;
}
} else {
targetClassElement = getEnclosingClassElement(node);