Skip to content

NullPointerException in DefaultHelpUi.displayContext #1689

Closed
@2wendex2

Description

@2wendex2

In ua/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/DefaultHelpUI.java, lines 330-336:

if (adapter != null)
	context = adapter.getContext(c);
String contextText = context.getText();

But javadoc of IContextProvider.getContext(Object) says:

return context help for the provided target or null if none is defined.

I.e. adapter.getContext(c) may return null then we call context.getText() and give NullPointerException.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions