eclipse-ecp / org.eclipse.emf.ecp.core

Eclipse Public License 2.0
0 stars 0 forks source link

NullPointerException in ViewEditor for TableControls #30

Open eclipse-ecp-bot opened 8 months ago

eclipse-ecp-bot commented 8 months ago

| --- | --- | | Bugzilla Link | 495000 | | Status | NEW | | Importance | P5 normal | | Reported | May 31, 2016 06:50 EDT | | Modified | May 06, 2022 10:08 EDT | | Version | 1.8.0 | | Reporter | Stefan Dirix |

Description

When configuring a TableControl in the ViewEditor it is possible to receive a NullPointerException. If the model is then saved the TableControl is no longer editable.

Steps to reproduce:

StackTrace:

java.lang.NullPointerException\ at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSettingDelegate(BasicEObjectImpl.java:1565)\ at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1027)\ at org.eclipse.emf.ecp.view.spi.model.impl.VFeaturePathDomainModelReferenceImpl.eGet(VFeaturePathDomainModelReferenceImpl.java:229)\ at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)\ at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)\ at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:998)\ at org.eclipse.emf.databinding.internal.EMFListProperty.doGetList(EMFListProperty.java:65)\ at org.eclipse.core.databinding.property.list.ListProperty.getList(ListProperty.java:57)\ at org.eclipse.core.internal.databinding.property.list.SimplePropertyObservableList.getList(SimplePropertyObservableList.java:128)\ at org.eclipse.core.internal.databinding.property.list.SimplePropertyObservableList.access$7(SimplePropertyObservableList.java:127)\ at org.eclipse.core.internal.databinding.property.list.SimplePropertyObservableList$2.run(SimplePropertyObservableList.java:97)\ at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:150)\ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\ at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:154)\ at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:172)\ at org.eclipse.core.internal.databinding.property.list.SimplePropertyObservableList.firstListenerAdded(SimplePropertyObservableList.java:94)\ at org.eclipse.core.databinding.observable.list.AbstractObservableList$PrivateChangeSupport.firstListenerAdded(AbstractObservableList.java:54)\ at org.eclipse.core.databinding.observable.ChangeManager.addListener(ChangeManager.java:70)\ at org.eclipse.core.databinding.observable.ChangeSupport.addListener(ChangeSupport.java:31)\ at org.eclipse.core.databinding.observable.list.AbstractObservableList.addListChangeListener(AbstractObservableList.java:109)\ at org.eclipse.core.internal.databinding.observable.masterdetail.DetailObservableList.updateInnerObservableList(DetailObservableList.java:138)\ at org.eclipse.core.internal.databinding.observable.masterdetail.DetailObservableList.(DetailObservableList.java:89)\ at org.eclipse.core.databinding.observable.masterdetail.MasterDetailObservables.detailList(MasterDetailObservables.java:78)\ at org.eclipse.core.databinding.property.list.ListProperty.observeDetail(ListProperty.java:157)\ at org.eclipse.emf.databinding.edit.internal.EMFEditListPropertyDecorator.observeDetail(EMFEditListPropertyDecorator.java:103)\ at org.eclipse.core.internal.databinding.property.ValuePropertyDetailList.observe(ValuePropertyDetailList.java:78)\ at org.eclipse.core.databinding.property.list.ListProperty.observe(ListProperty.java:132)\ at org.eclipse.emf.databinding.edit.internal.EMFEditListPropertyDecorator.observe(EMFEditListPropertyDecorator.java:80)\ at org.eclipse.emfforms.internal.core.services.databinding.EMFFormsDatabindingImpl.getObservableList(EMFFormsDatabindingImpl.java:120)\ at org.eclipse.emf.ecp.view.internal.editor.controls.TableColumnsDMRTableControl.createControl(TableColumnsDMRTableControl.java:218)\ at org.eclipse.emf.ecp.view.spi.core.swt.SimpleControlSWTRenderer.renderControl(SimpleControlSWTRenderer.java:255)\ at org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer.render(AbstractSWTRenderer.java:198)\ at org.eclipse.emf.ecp.view.spi.core.swt.AbstractControlSWTRenderer.render(AbstractControlSWTRenderer.java:163)\ at org.eclipse.emf.ecp.view.spi.core.swt.ContainerSWTRenderer.renderControl(ContainerSWTRenderer.java:176)\ at org.eclipse.emf.ecp.view.internal.core.swt.renderer.ViewSWTRenderer.renderControl(ViewSWTRenderer.java:100)\ at org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer.render(AbstractSWTRenderer.java:198)\ at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:113)\ at org.eclipse.emf.ecp.view.spi.treemasterdetail.ui.swt.TreeMasterDetailSWTRenderer$TreeMasterViewSelectionListener.selectionChanged(TreeMasterDetailSWTRenderer.java:886)

eclipse-ecp-bot commented 8 months ago

May 25, 2018 18:02

This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--\ The automated Eclipse Genie.

eclipse-ecp-bot commented 8 months ago

May 15, 2020 06:56

This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--\ The automated Eclipse Genie.

eclipse-ecp-bot commented 8 months ago

May 06, 2022 10:08

This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--\ The automated Eclipse Genie.