Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347805 - SWT: Right Mouse Click on Table Header -> Exception
Summary: SWT: Right Mouse Click on Table Header -> Exception
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 10:54 EDT by Matthias Zimmermann CLA
Modified: 2021-08-19 11:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Zimmermann CLA 2011-05-31 10:54:25 EDT
If clicking on a table header area that doesn't have colums an exception occurs.

java.lang.NullPointerException
	at org.eclipse.scout.rt.ui.swt.basic.table.SwtScoutTable.setContextColumnFromSwt(SwtScoutTable.java:511)
	at org.eclipse.scout.rt.ui.swt.basic.table.SwtScoutTable$P_SwtHeaderMenuDetectListener.menuDetected(SwtScoutTable.java:1015)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:172)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
	at org.eclipse.swt.widgets.Widget.showMenu(Widget.java:1323)
	at org.eclipse.swt.widgets.Widget.wmContextMenu(Widget.java:1419)
	at org.eclipse.swt.widgets.Table.windowProc(Table.java:5359)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4632)
	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2314)
	at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:206)
	at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:200)
	at org.eclipse.swt.widgets.Table.windowProc(Table.java:5433)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4619)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2411)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3501)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at com.bsiag.eclipsecon.scout.power.ui.swt.application.Application.startSecure(Application.java:48)
	at com.bsiag.eclipsecon.scout.power.ui.swt.application.Application$1.run(Application.java:34)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:396)
	at com.bsiag.eclipsecon.scout.power.ui.swt.application.Application.start(Application.java:32)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	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:368)
	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:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Comment 1 Matthias Zimmermann CLA 2011-05-31 10:54:57 EDT
fixed on 5.5.11, #99917
Comment 2 Matthias Zimmermann CLA 2011-06-28 09:16:59 EDT
shipped with eclipse scout 3.7.0