Skip to content

Commit

Permalink
Fix NPE in QuickFixProcessor (#1430)
Browse files Browse the repository at this point in the history
* Fix NPE in QuickFixProcessor

- add null check for deprecated method quickfix
- fixes #1429
  • Loading branch information
jjohnstn committed Jun 5, 2024
1 parent ec9df3d commit 1cc6fff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion org.eclipse.jdt.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Automatic-Module-Name: org.eclipse.jdt.ui
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.jdt.ui; singleton:=true
Bundle-Version: 3.32.100.qualifier
Bundle-Version: 3.32.200.qualifier
Bundle-Activator: org.eclipse.jdt.internal.ui.JavaPlugin
Bundle-ActivationPolicy: lazy
Bundle-Vendor: %providerName
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.jdt.ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</parent>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.ui</artifactId>
<version>3.32.100-SNAPSHOT</version>
<version>3.32.200-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ private void process(IInvocationContext context, IProblemLocation problem, Colle
break;
case IProblem.UsingDeprecatedMethod:
ASTNode deprecatedMethodNode= context.getCoveredNode();
if (!(deprecatedMethodNode instanceof MethodInvocation)) {
if (deprecatedMethodNode != null && !(deprecatedMethodNode instanceof MethodInvocation)) {
deprecatedMethodNode= deprecatedMethodNode.getParent();
}
if (deprecatedMethodNode instanceof MethodInvocation methodInvocation
Expand Down

0 comments on commit 1cc6fff

Please sign in to comment.