Revision bf083966
Added by Patrick Plitzner almost 10 years ago
- fixed potential session exceptions during closing/saving
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java | ||
---|---|---|
301 | 301 |
*/ |
302 | 302 |
@Override |
303 | 303 |
public void workbenchShutdown(IMemento memento, IProgressMonitor monitor) { |
304 |
if (!conversation.isBound()) { |
|
305 |
conversation.bind(); |
|
306 |
} |
|
304 | 307 |
conversation.close(); |
305 | 308 |
// if(memento == null){ |
306 | 309 |
// return; |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateSearchView.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 |
* Copyright (C) 2013 EDIT |
|
4 |
* European Distributed Institute of Taxonomy |
|
5 |
* http://www.e-taxonomy.eu |
|
6 |
* |
|
7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
9 |
*/ |
|
3 |
* Copyright (C) 2013 EDIT
|
|
4 |
* European Distributed Institute of Taxonomy
|
|
5 |
* http://www.e-taxonomy.eu
|
|
6 |
*
|
|
7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
|
8 |
* See LICENSE.TXT at the top of this package for the full license terms.
|
|
9 |
*/
|
|
10 | 10 |
package eu.etaxonomy.taxeditor.view.derivateSearch; |
11 | 11 |
|
12 | 12 |
import org.eclipse.core.runtime.IProgressMonitor; |
... | ... | |
101 | 101 |
*/ |
102 | 102 |
@Override |
103 | 103 |
public void workbenchShutdown(IMemento memento, IProgressMonitor monitor) { |
104 |
if(getConversationHolder()!=null){
|
|
104 |
if(getConversationHolder()!=null && getConversationHolder().isBound() && !getConversationHolder().isClosed()) {
|
|
105 | 105 |
getConversationHolder().close(); |
106 | 106 |
} |
107 | 107 |
} |
Also available in: Unified diff