Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnumConstantDeclaration.resolveConstructorBinding() may return null #991

Open
mickaelistria opened this issue Nov 27, 2024 · 0 comments
Open

Comments

@mickaelistria
Copy link

Seen randomly

java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.core.dom.IMethodBinding.getParameterTypes()" because "resolveConstructorBinding" is null
	at org.eclipse.jdt.internal.ui.javaeditor.EnumConstructorTargetFinder.findEnumDeclaration(EnumConstructorTargetFinder.java:148)
	at org.eclipse.jdt.internal.ui.javaeditor.EnumConstructorTargetFinder.findEnumConstructor(EnumConstructorTargetFinder.java:102)
	at org.eclipse.jdt.internal.ui.javaeditor.EnumConstructorTargetFinder.getOccurrence(EnumConstructorTargetFinder.java:76)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDetector.findEnumConstructorTarget(JavaElementHyperlinkDetector.java:322)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDetector.findEnumConstructorTarget(JavaElementHyperlinkDetector.java:305)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDetector.detectHyperlinksCached(JavaElementHyperlinkDetector.java:118)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDetector.lambda$0(JavaElementHyperlinkDetector.java:84)
	at org.eclipse.jdt.internal.core.JavaModelManager.cacheZipFiles(JavaModelManager.java:5694)

@robstryker this issue can cause issue some match related failures as it's being used in PatternLocatorVisitor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant