[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: tableviewer error on events ... eclipse 3.3.2
|
What's the content around line CustomHashtable 264? Looks like you are
inserting an NULL value and TableViewer can't deal with null-references.
Tom
Kar schrieb:
> Hi all
>
> I'm having a weird problem with my table viewer .
> Based on a selection event (the selection comes from a different view) .
> the table view is populated with a list of objects. .
>
> Usually it works but there is an object that generates this error ...
> what am I doing wrong?
>
> java.lang.NullPointerException
> at
> org.eclipse.jface.viewers.CustomHashtable.hashCode(CustomHashtable.java:264)
>
> at
> org.eclipse.jface.viewers.CustomHashtable.get(CustomHashtable.java:236)
> at
> org.eclipse.jface.viewers.StructuredViewer.mapElement(StructuredViewer.java:1243)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.associate(StructuredViewer.java:605)
>
> at
> org.eclipse.jface.viewers.AbstractTableViewer$1.handleEvent(AbstractTableViewer.java:83)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
> at org.eclipse.swt.widgets.Table.checkData(Table.java:811)
> at org.eclipse.swt.widgets.Table.wmNotifyChild(Table.java:5882)
> at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4563)
> at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1581)
> at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4216)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3724)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
> at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2179)
> at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:261)
> at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:189)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3760)
> at org.eclipse.swt.widgets.Table.windowProc(Table.java:5025)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2265)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3291)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at com.xxx.workbench.application.Application.start(Application.java:75)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
>
--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl JFace-Committer
--------------------------------------------------------------------