Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » NPE in ColumnViewerEditor due to cellEditor is null(when I switch the focus from one tree cell to another, the NPE occurs in ColumnViewerEditor)
NPE in ColumnViewerEditor due to cellEditor is null [message #1809834] Wed, 24 July 2019 10:05
Sanket W is currently offline Sanket WFriend
Messages: 3
Registered: July 2019
Junior Member
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.

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:
I think this fix was provided for a similar issue.

This issue, I posted on eclipse Bugzilla as well:

Stacktrace is attached as below:

at org.eclipse.jface.viewers.ColumnViewerEditor.activateCellEditor(
at org.eclipse.jface.viewers.ColumnViewerEditor.handleEditorActivationEvent(
at org.eclipse.jface.viewers.ColumnViewer.triggerEditorActivationEvent(
at org.eclipse.jface.viewers.ColumnViewerEditor.processTraverseEvent(
at org.eclipse.jface.viewers.ColumnViewerEditor.lambda$1(
at org.eclipse.swt.widgets.TypedListener.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Display.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Control.traverse(
at org.eclipse.swt.widgets.Control.translateTraversal(
at org.eclipse.swt.widgets.Display.translateTraversal(
at org.eclipse.swt.widgets.Display.filterMessage(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
at org.eclipse.ui.internal.Workbench.lambda$3(
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at com.teamcenter.rac.aifrcp.Application.runApplication(Unknown Source)
at com.teamcenter.rac.aifrcp.Application.start(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(
  • Attachment: snap.png
    (Size: 19.81KB, Downloaded 23 times)
Previous Topic:ModalContext.setAllowReadAndDispatch does not work correct as comment
Next Topic:Keybinding conflicts
Goto Forum:

Current Time: Wed Apr 21 21:32:04 GMT 2021

Powered by FUDForum. Page generated in 0.01906 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top