Index: pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
index d1ec86effdc3a706d758a350632b987cd2e1381b..eca515bcfb4b25d5a5fc6568dfbc38a0ccddb7a7 100644 |
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
@@ -452,6 +452,9 @@ class FixProcessor { |
if (parent is PrefixedIdentifier) { |
PrefixedIdentifier prefixedIdentifier = parent; |
prefixElement = prefixedIdentifier.prefix.staticElement; |
+ if (prefixElement == null) { |
+ return; |
+ } |
parent = prefixedIdentifier.parent; |
nameNode = prefixedIdentifier.identifier; |
name = prefixedIdentifier.identifier.name; |