cp-api / cp-lib4

0 stars 0 forks source link

NPE when browsing applied property values on elements that don't have block architecture ancestor #20

Closed eclipse-capella-bot closed 3 years ago

eclipse-capella-bot commented 3 years ago

In Project with Lib, create a Constraint under the project. Pressing the browse button for applied property values does nothing and an NPE is thrown:

!ENTRY org.eclipse.ui 4 0 2019-01-21 14:18:19.053 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException at org.polarsys.capella.common.helpers.TransactionHelper.getEditingDomain(TransactionHelper.java:39) at org.polarsys.capella.core.queries.helpers.QueryExt.getBlockArchitectureFromLibraryUpward(QueryExt.java:105) at org.polarsys.capella.core.queries.helpers.QueryExt.getCorrespondingElementInLibrary(QueryExt.java:168) at org.polarsys.capella.core.libraries.extendedqueries.capellacommon.GetAvailable_CapellaElement_AppliedPropertyValues_Lib.getAvailableElements(GetAvailable_CapellaElement_AppliedPropertyValues_Lib.java:60) at org.polarsys.capella.core.libraries.extendedqueries.capellacommon.GetAvailable_CapellaElement_AppliedPropertyValues_Lib.execute(GetAvailable_CapellaElement_AppliedPropertyValues_Lib.java:42) at org.polarsys.capella.common.queries.interpretor.QueryInterpretor.executeQuery(QueryInterpretor.java:93) at org.polarsys.capella.common.queries.interpretor.QueryInterpretor.executeQuery(QueryInterpretor.java:131) at org.polarsys.capella.core.business.queries.capellacore.CapellaElement_AppliedPropertyValues.getAvailableElements(CapellaElement_AppliedPropertyValues.java:44) at org.polarsys.capella.core.ui.properties.controllers.AbstractMultipleSemanticFieldController.readOpenValues(AbstractMultipleSemanticFieldController.java:85) at org.polarsys.capella.core.ui.properties.fields.ReferenceTableField$2.run(ReferenceTableField.java:87) at org.polarsys.capella.common.ef.ExecutionManager$2.doExecute(ExecutionManager.java:127) at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135) at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119) at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)

🆔 ECLIPSE-555046 / POLARSYS-2348 👷 felix.dorner 📅 2019-01-21 🔎 1.3.0

eclipse-capella-bot commented 3 years ago

philippe.dul commented on 2020-11-17

Fixed

This bug has been marked as a duplicate of ECLIPSE-554441