Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-05-13 20:30:55 +0000
committerChristian W. Damus2014-05-13 20:30:55 +0000
commit725f20b9eabfc637a05ffeef9df2104a44082548 (patch)
tree0a87dbd8e376c0e6b470887525ece2dc58cec540 /plugins/views
parentc3c8f633c4ebe43b9f9579f02799ec5ae0619ef6 (diff)
downloadorg.eclipse.papyrus-725f20b9eabfc637a05ffeef9df2104a44082548.tar.gz
org.eclipse.papyrus-725f20b9eabfc637a05ffeef9df2104a44082548.tar.xz
org.eclipse.papyrus-725f20b9eabfc637a05ffeef9df2104a44082548.zip
434635: [Model Explorer] Preference for "Link with Editor"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=434635 Handle bootstrapping case of null memento.
Diffstat (limited to 'plugins/views')
-rw-r--r--plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerPageBookView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerPageBookView.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerPageBookView.java
index b527500c691..dc0aed2e5bd 100644
--- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerPageBookView.java
+++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/ModelExplorerPageBookView.java
@@ -55,7 +55,9 @@ public class ModelExplorerPageBookView extends MultiViewPageBookView implements
public void init(IViewSite site, IMemento memento) throws PartInitException {
super.init(site, memento);
- state.load(memento);
+ if(memento != null) {
+ state.load(memento);
+ }
}
/**

Back to the top