Open-Systems-Pharmacology / MoBi

MoBi® is a software tool for multiscale physiological modeling and simulation
Other
31 stars 10 forks source link

Exception when creating a neighborhood #1561

Closed PavelBal closed 4 weeks ago

PavelBal commented 1 month ago

Project from this issue: https://github.com/Open-Systems-Pharmacology/MoBi/issues/1497

In the "Diagram" view, start creating a neighborhood from "containerB" to "TopContainer":

Application: MoBi® 12.0.340

Object reference not set to an instance of an object.

Stack trace:

at OSPSuite.Core.Domain.ObjectPathFactory.addPathEntry(IEntity entity, ObjectPath objectPath)
   at OSPSuite.Core.Domain.ObjectPathFactory.CreateAbsoluteObjectPath(IEntity entity)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForNeighborhood.Add(IContainer firstNeighbor, IContainer secondNeighbor)
   at MoBi.Presentation.Presenter.SpaceDiagram.SpatialStructureDiagramPresenter.Link(IBaseNode node1, IBaseNode node2, Object portObject1, Object portObject2)
   at MoBi.UI.Views.BaseDiagram.MoBiBaseDiagramView.onLinkCreated(GoSelectionEventArgs e)
   at MoBi.UI.Views.BaseDiagram.MoBiBaseDiagramView.<>c__DisplayClass5_0.<InitializeResources>b__4()
   at OSPSuite.Utility.Extensions.ExceptionExtensions.DoWithinExceptionHandler(Object callerObject, Action actionToExecute)
rwmcintosh commented 4 weeks ago

TODO as I fix the initial bug report

image