Revision d8de6c71
Added by Cherian Mathew over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/derivateSearch/DerivateSearchView.java | ||
---|---|---|
96 | 96 |
} |
97 | 97 |
|
98 | 98 |
private void initSession() { |
99 |
if(CdmStore.isActive() && cdmEntitySession == null) {
|
|
99 |
if(CdmStore.isActive()) { |
|
100 | 100 |
cdmEntitySession = CdmStore.getCurrentSessionManager().newSession(this, true); |
101 | 101 |
} |
102 | 102 |
} |
... | ... | |
126 | 126 |
conversationHolder.close(); |
127 | 127 |
} |
128 | 128 |
|
129 |
cdmEntitySession.dispose(); |
|
129 |
if(cdmEntitySession != null) { |
|
130 |
cdmEntitySession.dispose(); |
|
131 |
} |
|
130 | 132 |
super.dispose(); |
131 | 133 |
} |
132 | 134 |
|
Also available in: Unified diff
Add null check for session