Bug #3312

RCP: InternalView, Selecting "lb" as structure leads to an exception

Added by Sebastien Jacquot 3 months ago.

Status:New Start date:10/28/2022
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:UI / Editor Spent time: -
Target version:TXM X.X

Description

Selecting "lb" as structure leads to an exception.
Remove self-closing structures from the selection combo?

TXMEditor.compute(): InternalViewEditor: Error while refreshing the editor: java.lang.NullPointerException
java.lang.NullPointerException
    at org.txm.internalview.rcp.editors.InternalViewEditor$2.getElements(InternalViewEditor.java:220)
    at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:997)
    at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:704)
    at org.eclipse.jface.viewers.AbstractTableViewer.getRawChildren(AbstractTableViewer.java:1038)
    at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:903)
    at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:1080)
    at org.eclipse.jface.viewers.AbstractTableViewer.internalVirtualRefreshAll(AbstractTableViewer.java:642)
    at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:617)
    at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:607)
    at org.eclipse.jface.viewers.AbstractTableViewer.lambda$0(AbstractTableViewer.java:569)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1449)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1410)
    at org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:569)
    at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:289)
    at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1687)
    at org.txm.internalview.rcp.editors.InternalViewEditor.fillResultArea(InternalViewEditor.java:411)
    at org.txm.internalview.rcp.editors.InternalViewEditor.updateEditorFromResult(InternalViewEditor.java:429)
    at org.txm.rcp.editors.TXMEditor.refresh(TXMEditor.java:1238)
    at org.txm.rcp.editors.TXMEditor$4$2.run(TXMEditor.java:1036)
    at org.eclipse.ui.internal.PendingSyncExec.run(PendingSyncExec.java:61)
    at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:171)
    at org.eclipse.ui.internal.UISynchronizer.lambda$0(UISynchronizer.java:153)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3933)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3564)
    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:628)
    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 org.txm.rcp.Application.start(Application.java:260)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:199)
    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:391)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246)
    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)

Also available in: Atom PDF