Bug 294

Summary: Null Pointer Exception moving mouse over required plugins (1GFL144)
Product: [Eclipse Project] PDE Reporter: Tod Creasey <Tod_Creasey>
Component: UIAssignee: Dejan Glozic <dejan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:

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.