mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:58:29 +00:00
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:
parent
e5296d5adb
commit
c568c9379f
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue