Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapped FBs might not have a resource #695

Open
bwiesmayr opened this issue Nov 4, 2024 · 0 comments
Open

Mapped FBs might not have a resource #695

bwiesmayr opened this issue Nov 4, 2024 · 0 comments

Comments

@bwiesmayr
Copy link
Contributor

We have a prototype implementation for the 1499 extension on communication. Blocks that are named COMM_MESSAGE_something are mapped to Segments and not to Devices. Unfortunately, this breaks my control application as soon as I edit any of these types - the update is broken. Maybe it would be an option to return for these elements (they have a dedicated model element) the segment instead of the resource.

Unhandled event loop exception
Cannot invoke "org.eclipse.fordiac.ide.model.libraryElement.Resource.getFBNetwork()" because the return value of "org.eclipse.fordiac.ide.model.libraryElement.FBNetworkElement.getResource()" is null
  java.lang.NullPointerException: Cannot invoke "org.eclipse.fordiac.ide.model.libraryElement.Resource.getFBNetwork()" because the return value of "org.eclipse.fordiac.ide.model.libraryElement.FBNetworkElement.getResource()" is null
  at org.eclipse.fordiac.ide.model.commands.change.AbstractUpdateFBNElementCommand.execute(AbstractUpdateFBNElementCommand.java:99)
  at org.eclipse.fordiac.ide.model.edit.TypeEntryAdapter.lambda$11(TypeEntryAdapter.java)
  at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
  at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
  at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
  at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
  at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
  at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
  at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
  at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
  at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
  at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
  at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
  at org.eclipse.fordiac.ide.model.edit.TypeEntryAdapter.handleBlockTypeDependencyUpdate(TypeEntryAdapter.java:176)
  at org.eclipse.fordiac.ide.model.edit.TypeEntryAdapter.lambda$2(TypeEntryAdapter.java:139)
  at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
  at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
  at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4099)
  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3715)
  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
  at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
  at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
  at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:639)
  at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
  at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:546)
  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
  at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
  at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
  at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
  at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
  at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
  at java.base/java.lang.reflect.Method.invoke(Unknown Source)
  at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
  at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant