Project: SWT
Bug 76456 Eclipse 3.0.1crashes on HP-UX with a NullPointerException when starting up
Reported: 2004-10-18 05:39:17 | Status: resolved fixed

When I try to start eclipse, the splash screen appears, but a few seconds later a dialog box informs me that "An error has occured. See the log file 'xxx'." and the process terminates. I attach the log file at the end of the message. Note: I entered 'Other' in the Platform field, as there was no option 'HP'. Note: I am not sure about the Component, but as jface occurs in the stack trace in the log file and Jface is related to SWT, I choose SWT The system is running HP-UX B.11.00 with CDE 2.1.0. Thomas --- !SESSION Oct 18, 2004 10:50:59.644 --------------------------------------------- eclipse.buildId=M200409161125 java.version=1.4.2.05 java.vendor=Hewlett-Packard Co. BootLoader constants: OS=hpux, ARCH=PA_RISC, WS=motif, NL=en !ENTRY org.eclipse.osgi Oct 18, 2004 10:50:59.658 !MESSAGE Application error !STACK 1 java.lang.NullPointerException at org.eclipse.jface.resource.FontRegistry.bestData (FontRegistry.java:336) at org.eclipse.jface.resource.FontRegistry.bestDataArray (FontRegistry.java:369) at org.eclipse.jface.resource.FontRegistry.createFont (FontRegistry.java:389) at org.eclipse.jface.resource.FontRegistry.defaultFontRecord (FontRegistry.java:431) at org.eclipse.jface.resource.FontRegistry.getFontRecord (FontRegistry.java:519) at org.eclipse.jface.resource.FontRegistry.get(FontRegistry.java:472) at org.eclipse.jface.resource.JFaceResources.getDialogFont (JFaceResources.java:182) at org.eclipse.jface.dialogs.Dialog.initializeDialogUnits (Dialog.java:778) at org.eclipse.jface.dialogs.TitleAreaDialog.createContents (TitleAreaDialog.java:93) at org.eclipse.jface.window.Window.create(Window.java:348) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:925) at org.eclipse.jface.window.Window.open(Window.java:637) at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt (ChooseWorkspaceDialog.java:65) at org.eclipse.ui.internal.ide.IDEApplication.promptForWorkspace (IDEApplication.java:314) at org.eclipse.ui.internal.ide.IDEApplication.checkInstanceLocation (IDEApplication.java:219) at org.eclipse.ui.internal.ide.IDEApplication.run (IDEApplication.java:83) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:129) 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:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Font.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Font.java