Project

General

Profile

« Previous | Next » 

Revision bf083966

Added by Patrick Plitzner almost 10 years ago

  • fixed potential session exceptions during closing/saving

View differences:

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