-
Notifications
You must be signed in to change notification settings - Fork 129
NullPointerException in DefaultHelpUi.displayContext #1689
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
Labels
bug
Something isn't working
Comments
If you have an actual NPE please quote the whole stacktrace and give a reproducer. Or are you just speculating that there is a possible NPE? |
@jukzi I have an actual NPE. Stack trace:
To reproduce this you should a create your custom IContextProvider, in get context write |
good, can you provide a fix, please? |
SougandhS
added a commit
to SougandhS/eclipse.platform
that referenced
this issue
May 8, 2025
Check whether context is null or not before invoking getText() Fixes : eclipse-platform#1689
SougandhS
added a commit
to SougandhS/eclipse.platform
that referenced
this issue
May 13, 2025
Check whether context is null or not before invoking getText() Fixes : eclipse-platform#1689
SougandhS
added a commit
to SougandhS/eclipse.platform
that referenced
this issue
May 29, 2025
Check whether context is null or not before invoking getText() Fixes : eclipse-platform#1689
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In ua/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/DefaultHelpUI.java, lines 330-336:
But javadoc of
IContextProvider.getContext(Object)
says:I.e.
adapter.getContext(c)
may returnnull
then we callcontext.getText()
and giveNullPointerException
.The text was updated successfully, but these errors were encountered: