-
Notifications
You must be signed in to change notification settings - Fork 117
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
NullPointerException in DefaultHelpUi.displayContext #1689
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? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: