| Summary: | StackOverFlows and NPEs when session not loaded from memento | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Maxime Porhel <maxime.porhel> |
| Component: | Core | Assignee: | Maxime Porhel <maxime.porhel> |
| Status: | CLOSED FIXED | QA Contact: | Maxime Porhel <maxime.porhel> |
| Severity: | critical | ||
| Priority: | P3 | Keywords: | triaged |
| Version: | 2.0.0 | ||
| Target Milestone: | 2.0.3 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 457443 | ||
|
Description
Maxime Porhel
See https://git.eclipse.org/r/39574 Scenario for developers: in DAnalysisSessionImpl.open(), add a throws new OperationCanceledException to have nothing to do during reload step. The provided patch make the SessionInputEditorFactory return null when we detect that the load from memento is not valid. The editor displays : Factory org.eclipse.sirius.ui.business.api.session.SessionEditorInputFactory returned null from createElement for editor id=org.eclipse.sirius.diagram.ui.part.SiriusDiagramEditorID name=null It can be closed without errors and not other error occurs when the user manipulates its IDE. Fixed with commit c95eaa35b97819c591a2628a36c22b1f4c2bedc7 on v2.0.x branch Validated on Sirius Stable pre-2.0.3 (2.0.3-S20150116-162634) Available in Sirius 2.0.3. |