Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366834 - NPE in HandledContributionItem.getToolTipText(*)
Summary: NPE in HandledContributionItem.getToolTipText(*)
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.2 M5   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 11:57 EST by Paul Webster CLA
Modified: 2012-01-24 13:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Webster CLA 2011-12-15 11:57:34 EST
We shouldn't have a check for null and then use the old thing.

java.lang.NullPointerException
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.getToolTipText(HandledContributionItem.java:474)
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.updateToolItem(HandledContributionItem.java:457)
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.update(HandledContributionItem.java:403)
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.update(HandledContributionItem.java:390)
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$2.run(HandledContributionItem.java:179)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.updateItemEnablement(HandledContributionItem.java:205)
	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$ToolItemUpdateTimer.run(HandledContributionItem.java:123)
Comment 1 Paul Webster CLA 2011-12-15 13:21:31 EST
it's probably the EBindingService missing.

PW
Comment 2 Paul Webster CLA 2011-12-15 13:27:57 EST
Released NPE guard.

PW
Comment 3 Paul Webster CLA 2012-01-24 13:17:30 EST
In I20120123-2200
PW