NPE in ColumnViewerEditor due to cellEditor is null [message #1809834] |
Wed, 24 July 2019 06:05 |
Eclipse User |
|
|
|
Switch focus from one tree cell to another tree cell and when the target focus is on the next line/row of tree table, this issue occurs.
Usecase:
Consider I have a tree table with 2 rows/entries i.e. row1 and row2
The current focus is on the last editable cell of a row1.
Press TAB key, the focus should shift to next row's first editable cell i.e. row2's first editable cell.
But NPE is observed
Also checked the bug which has resolved the NPE using some condition:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=260892
I think this fix was provided for a similar issue.
This issue, I posted on eclipse Bugzilla as well:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=549385
Stacktrace is attached as below:
java.lang.NullPointerException
at org.eclipse.jface.viewers.ColumnViewerEditor.activateCellEditor(ColumnViewerEditor.java:192)
at org.eclipse.jface.viewers.ColumnViewerEditor.handleEditorActivationEvent(ColumnViewerEditor.java:425)
at org.eclipse.jface.viewers.ColumnViewer.triggerEditorActivationEvent(ColumnViewer.java:680)
at org.eclipse.jface.viewers.ColumnViewerEditor.processTraverseEvent(ColumnViewerEditor.java:541)
at org.eclipse.jface.viewers.ColumnViewerEditor.lambda$1(ColumnViewerEditor.java:245)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:269)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1064)
at org.eclipse.swt.widgets.Control.traverse(Control.java:4277)
at org.eclipse.swt.widgets.Control.translateTraversal(Control.java:4259)
at org.eclipse.swt.widgets.Display.translateTraversal(Display.java:4687)
at org.eclipse.swt.widgets.Display.filterMessage(Display.java:1211)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3543)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
at com.teamcenter.rac.aifrcp.Application.runApplication(Unknown Source)
at com.teamcenter.rac.aifrcp.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
Attachment: snap.png
(Size: 19.81KB, Downloaded 109 times)
|
|
|
Powered by
FUDForum. Page generated in 0.05977 seconds