Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 29032 - [About] NPE in AboutFeaturesDialog
Summary: [About] NPE in AboutFeaturesDialog
Status: RESOLVED DUPLICATE of bug 24635
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andrew Irvine CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-06 10:18 EST by Gunnar Wagenknecht CLA
Modified: 2003-01-07 15:58 EST (History)
0 users

See Also:


Attachments
feature.xml (1.80 KB, text/plain)
2003-01-07 10:50 EST, Gunnar Wagenknecht CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2003-01-06 10:18:39 EST
java.lang.NullPointerException
	at org.eclipse.ui.internal.dialogs.AboutFeaturesDialog.buttonPressed
(AboutFeaturesDialog.java:96)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:398)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:87)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:561)
	at org.eclipse.jface.window.Window.open(Window.java:541)
	at org.eclipse.ui.internal.dialogs.AboutDialog$3.widgetSelected
(AboutDialog.java:227)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:87)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:561)
	at org.eclipse.jface.window.Window.open(Window.java:541)
	at org.eclipse.ui.internal.AboutAction.run(AboutAction.java:40)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:769)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:411)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:365)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:356)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:48)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1692)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1410)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1403)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1386)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:845)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:247)
	at org.eclipse.core.launcher.Main.run(Main.java:703)
	at org.eclipse.core.launcher.Main.main(Main.java:539)
Comment 1 Sonia Dimitrov CLA 2003-01-07 09:33:11 EST
The stack trace is almost identical to that in 24635.

Can you provide steps for us to reproduce this problem?
Comment 2 Gunnar Wagenknecht CLA 2003-01-07 09:46:25 EST
Could reproduce but you need a custom primary feature. I have one for my 
application.

1. Open about dialog
(for me it is "Help >About Harbour Development Tools because I use product 
branding)
2. Click on "Feature Details"
3. Select your custom feature
4. Click on "More Info"
-> Nothing happends except NPE in log file

With the Eclipse.org features there is a html file opened (e.g. 
\features\org.eclipse.platform_2.1.0\license.html).

With my custom feature no HTML file is opened. I think I must have done some 
mistake because I created my feature with looking at the Eclipse platform 
feature. Any ideas?

Anyway, the about dialog should be aware of such mistakes.
Comment 3 Andrew Irvine CLA 2003-01-07 10:47:09 EST
Please attach your feature.xml 
Comment 4 Gunnar Wagenknecht CLA 2003-01-07 10:50:59 EST
Created attachment 2911 [details]
feature.xml
Comment 5 Andrew Irvine CLA 2003-01-07 15:58:03 EST
Change the entry for the license from 

<license>
     %license
   </license>

to 

<license url="%licenseURL">
     %license
   </license>

*** This bug has been marked as a duplicate of 24635 ***