Community
Participate
Working Groups
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
PRODUCT VERSION: 125
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.