Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 256990

Summary: NPE in CCombo.computeSize(...) coming from Mylyn's FillWidthLayout.computeSize(...)
Product: z_Archived Reporter: Chris Aniszczyk <caniszczyk>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: greensopinion, leo.dos.santos
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Chris Aniszczyk CLA 2008-11-30 14:45:03 EST
I had this come up when viewing a bug at Eclipse.org (#254976)

-- Error Details --
Date: Sun Nov 30 13:41:54 CST 2008
Message: Unhandled event loop exception
Severity: Error
Plugin: org.eclipse.ui
Session Data:
eclipse.buildId=I20081127-0900
java.version=1.5.0_16
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments:  -keyring /Users/chrisaniszczyk/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws carbon -arch x86 -keyring /Users/chrisaniszczyk/.eclipse_keyring -consoleLog -showlocation


Exception Stack Trace:
java.lang.NullPointerException
at org.eclipse.swt.custom.CCombo.computeSize(CCombo.java:399)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:483)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:217)
at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:162)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:195)
at org.eclipse.ui.forms.widgets.LayoutComposite.computeSize(LayoutComposite.java:35)
at org.eclipse.ui.forms.widgets.SizeCache.controlComputeSize(SizeCache.java:391)
at org.eclipse.ui.forms.widgets.SizeCache.computeMinimumWidth(SizeCache.java:430)
at org.eclipse.ui.forms.widgets.SizeCache.computeSize(SizeCache.java:190)
at org.eclipse.ui.forms.widgets.ExpandableComposite$ExpandableLayout.computeSize(ExpandableComposite.java:460)
at org.eclipse.ui.forms.widgets.ExpandableComposite.computeSize(ExpandableComposite.java:928)
at org.eclipse.mylyn.internal.tasks.ui.editors.FillWidthLayout.computeSize(FillWidthLayout.java:170)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:195)
at org.eclipse.ui.forms.widgets.LayoutComposite.computeSize(LayoutComposite.java:35)
at org.eclipse.ui.forms.widgets.SizeCache.controlComputeSize(SizeCache.java:391)
at org.eclipse.ui.forms.widgets.SizeCache.computeMinimumHeight(SizeCache.java:478)
at org.eclipse.ui.forms.widgets.SizeCache.computeSize(SizeCache.java:201)
at org.eclipse.ui.forms.widgets.ExpandableComposite$ExpandableLayout.computeSize(ExpandableComposite.java:460)
at org.eclipse.ui.forms.widgets.ExpandableComposite.computeSize(ExpandableComposite.java:928)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:483)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:217)
at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:162)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:195)
at org.eclipse.ui.forms.widgets.LayoutComposite.computeSize(LayoutComposite.java:35)
at org.eclipse.ui.forms.widgets.SizeCache.controlComputeSize(SizeCache.java:391)
at org.eclipse.ui.forms.widgets.SizeCache.computeMinimumWidth(SizeCache.java:430)
at org.eclipse.ui.forms.widgets.SizeCache.computeSize(SizeCache.java:190)
at org.eclipse.ui.forms.widgets.Form$FormLayout.computeSize(Form.java:136)
at org.eclipse.ui.forms.widgets.Form$FormLayout.computeMinimumWidth(Form.java:106)
at org.eclipse.ui.forms.widgets.SizeCache.computeMinimumWidth(SizeCache.java:423)
at org.eclipse.ui.forms.widgets.SizeCache.computeSize(SizeCache.java:190)
at org.eclipse.ui.forms.widgets.SharedScrolledComposite.reflow(SharedScrolledComposite.java:189)
at org.eclipse.ui.forms.ManagedForm.reflow(ManagedForm.java:129)
at org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPage$ParentResizeHandler$1.run(AbstractTaskEditorPage.java:183)
at org.eclipse.swt.widgets.Display.runTimers(Display.java:3568)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3045)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
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:370)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:550)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:505)
at org.eclipse.equinox.launcher.Main.run(Main.java:1237)
Comment 1 Steffen Pingel CLA 2008-12-01 16:17:02 EST
That's odd. None of the composites using FillWidthLayout should nest a CCombo except for the duplicate detection maybe. Chris, which version of Mylyn are you running?

Leo, can you reproduce the problem when viewing bug 254976?
Comment 2 Leo Dos Santos CLA 2009-01-19 14:38:10 EST
I've never been able to reproduce this, sorry.
Comment 3 Steffen Pingel CLA 2009-03-07 23:32:05 EST
Marking as resolved for now since we haven't been able to reproduce this. Chris, please reopen if are you still seeing this error with the latest release: http://www.eclipse.org/mylyn/downloads/#weekly
Comment 4 Steffen Pingel CLA 2009-04-16 16:09:17 EDT
Got another one of these.
Comment 5 Steffen Pingel CLA 2009-04-16 16:09:36 EDT

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