We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5adff87 commit 723baf7Copy full SHA for 723baf7
pkg/analysis_server/lib/src/services/correction/fix_internal.dart
@@ -2168,6 +2168,9 @@ class FixProcessor extends BaseProcessor {
2168
// prepare target declaration
2169
var targetDeclarationResult =
2170
await sessionHelper.getElementDeclaration(targetElement);
2171
+ if (targetDeclarationResult == null) {
2172
+ return;
2173
+ }
2174
if (targetDeclarationResult.node is! ClassOrMixinDeclaration &&
2175
targetDeclarationResult.node is! ExtensionDeclaration) {
2176
return;
0 commit comments