Community
Participate
Working Groups
Build Identifier: 20110916-0149 When using the CalendarCombo with GTK/Linux it happens that the constructors of the super class add a DisposeListener to the CalendarCombo. But the init-method has not been called yet, so the field mComboControl is still null and a NullPointerException occurs. java.lang.NullPointerException at org.eclipse.nebula.widgets.calendarcombo.CalendarCombo.addDisposeListener(CalendarCombo.java:1669) at org.eclipse.swt.accessibility.Accessible.<init>(Accessible.java:115) at org.eclipse.swt.accessibility.Accessible.internal_new_Accessible(Accessible.java:514) at org.eclipse.swt.widgets.Control._getAccessible(Control.java:687) at org.eclipse.swt.widgets.Label.addRelation(Label.java:111) at org.eclipse.swt.widgets.Control.setRelations(Control.java:1069) at org.eclipse.swt.widgets.Control.createWidget(Control.java:577) at org.eclipse.swt.widgets.Scrollable.createWidget(Scrollable.java:152) at org.eclipse.swt.widgets.Control.<init>(Control.java:97) at org.eclipse.swt.widgets.Scrollable.<init>(Scrollable.java:74) at org.eclipse.swt.widgets.Composite.<init>(Composite.java:95) at org.eclipse.nebula.widgets.calendarcombo.CalendarCombo.<init>(CalendarCombo.java:183) at com.twt.tfc.gui.filter.widgets.FromToCalendarPropertyComposite.<init>(FromToCalendarPropertyComposite.java:65) at com.twt.tfc.gui.filter.PropertyCompositesFactory.createCalendarControl(PropertyCompositesFactory.java:186) at com.twt.tfc.gui.filter.PropertyCompositesFactory.createControlForProperty(PropertyCompositesFactory.java:87) at com.twt.co2mo.gui.views.filters.vehicleFilterView.PropertyFilterComposite.createContents(PropertyFilterComposite.java:82) at com.twt.co2mo.gui.views.filters.vehicleFilterView.PropertyFilterComposite.<init>(PropertyFilterComposite.java:48) at com.twt.co2mo.gui.views.filters.vehicleFilterView.VehicleFilterView.createPartControl(VehicleFilterView.java:108) at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375) at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.Perspective.showFastView(Perspective.java:2171) at org.eclipse.ui.internal.Perspective.setActiveFastView(Perspective.java:1939) at org.eclipse.ui.internal.Perspective.setActiveFastView(Perspective.java:1952) at org.eclipse.ui.internal.Perspective.toggleFastView(Perspective.java:2367) at org.eclipse.ui.internal.WorkbenchPage.toggleFastView(WorkbenchPage.java:3972) at org.eclipse.ui.internal.ShowFastViewContribution.showView(ShowFastViewContribution.java:157) at org.eclipse.ui.internal.ShowFastViewContribution.access$1(ShowFastViewContribution.java:155) at org.eclipse.ui.internal.ShowFastViewContribution$3.widgetSelected(ShowFastViewContribution.java:138) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.twt.co2mo.gui.Application.start(Application.java:65) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) Reproducible: Always Steps to Reproduce: 1. Use Linux/GTK 2. Try to create an instance of CalendarCombo by calling new CalendarCombo( propertyParent, SWT.DROP_DOWN )
I am also getting the exact same NPE. Is there any fix for this issue?
CalendarCombo will be archived june 30 2013. Please update your software to use Nebula CDateTime or SWT DateTime. Closing as WONTFIX.