Project

General

Profile

Bug #2222

GUI/Deployment Editor: NPE after logical architecture has been modified

Added by Simon Barner almost 6 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
01/19/2015
Due date:
% Done:

0%

Estimated time:

Description

  1. Create a new project
  2. Create a component architecture with two sub-components, C1 and C2
  3. Create a platform architecture with a single Generic ECU
  4. Save the model (optional). Do not save the model from now on
  5. Create a new deployment
  6. Deploy C1 and C2 to the Generic ECU
  7. Delete C1 from the component architecture
  8. Tend back to the deployment editor and click onto C2 (sic!) and observe below stack trace

Analysis: A fix of #2167 should also avoid this NPE.

java.lang.NullPointerException
    at org.fortiss.af3.deployment.ui.editor.DeploymentEditorBackend.createTreeSelectionFor(DeploymentEditorBackend.java:480)
    at org.fortiss.af3.deployment.ui.editor.DeploymentEditorBackend.access$2(DeploymentEditorBackend.java:475)
    at org.fortiss.af3.deployment.ui.editor.DeploymentEditorBackend$13.selectionChanged(DeploymentEditorBackend.java:423)
    at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:247)
    at org.eclipse.gef.ui.parts.AbstractEditPartViewer$1.run(AbstractEditPartViewer.java:131)
    at org.eclipse.gef.SelectionManager.fireSelectionChanged(SelectionManager.java:144)
    at org.eclipse.gef.SelectionManager.appendSelection(SelectionManager.java:83)
    at org.eclipse.gef.ui.parts.AbstractEditPartViewer.appendSelection(AbstractEditPartViewer.java:190)
    at org.eclipse.gef.ui.parts.AbstractEditPartViewer.select(AbstractEditPartViewer.java:599)
    at org.fortiss.af3.deployment.ui.editor.DeploymentEditorBackend$12.selectionChanged(DeploymentEditorBackend.java:389)
    at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)
    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)
    at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.fortiss.af3.rcp.application.AF3Application.start(AF3Application.java:48)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Related issues

Related to Bug #2167: DeploymentEditor: View is not updated on changes of the underlying component and platform architectureClosed11/25/2014

History

#1 Updated by Simon Barner almost 6 years ago

  • Related to Bug #2167: DeploymentEditor: View is not updated on changes of the underlying component and platform architecture added

#2 Updated by Anonymous almost 6 years ago

  • Status changed from New to Resolved

solved together with #2167

#3 Updated by Anonymous almost 6 years ago

  • Assignee changed from Anonymous to Simon Barner

#4 Updated by Anonymous almost 6 years ago

  • Target version changed from AF3 2.7 RC3 (tested) to AF3 2.7 RC4 (bugs fixed)

#5 Updated by Simon Barner almost 6 years ago

  • Status changed from Resolved to Closed

Fix confirmed.

#6 Updated by Simon Barner almost 3 years ago

  • Assignee deleted (Simon Barner)

Also available in: Atom PDF