Bug 294 - Null Pointer Exception moving mouse over required plugins (1GFL144)
Summary: Null Pointer Exception moving mouse over required plugins (1GFL144)
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 21:39 EDT by Tod Creasey CLA
Modified: 2001-12-02 12:47 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2001-10-10 21:39:40 EDT
I received a null pointer exception when I had the Overview page selected for a 
plugin I had created
myself. I am not sure how I got into this state but I had managed to get the 
list of Required Plugins
to include one called org.eclipse.ui rather than the plugin name. When I moved 
my mouse
over this link I got a Null Pointer Exception.

java.lang.NullPointerException
	at org.eclipse.pde.internal.editor.manifest.RequiresSection.linkEntered
(RequiresSection.java:105)
	at org.eclipse.pde.internal.forms.HyperlinkHandler.mouseEnter
(HyperlinkHandler.java:81)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:642)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:810)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:280)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:119)
	at org.eclipse.core.launcher.Main.run(Main.java:401)
	at org.eclipse.core.launcher.Main.main(Main.java:274)


NOTES:

JohnA (9/14/2001 4:24:45 PM)
	I got the same exception after opening an plugin.xml that I had never 
edited or opened (core resources plugin.xml).
	This was in build 0.131
Comment 1 DJ Houghton CLA 2001-10-24 07:08:00 EDT
PRODUCT VERSION: 125


Comment 2 Dejan Glozic CLA 2001-12-02 12:47:06 EST
The problem was in not checking the value of the associated plug-in reference
for the hyperlink. The result was a null pointer exception. The fix is to
recognize this situation (i.e. having a link that is unresolved) and drop
the hyperlink for it (use plain label) as well as use error overlay icon
to indicate this.