Revision 7953b892
Added by Katja Luther about 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/FactualDataPartE4.java | ||
---|---|---|
169 | 169 |
} |
170 | 170 |
featureNodeContainerCache.clear(); |
171 | 171 |
showViewer(structuredSelection, activePart, viewer); |
172 |
|
|
173 |
this.viewer.getControl().setEnabled(isEnabled()); |
|
172 |
if ( viewer.getControl() != null &&!this.viewer.getControl().isDisposed()){ |
|
173 |
this.viewer.getControl().setEnabled(isEnabled()); |
|
174 |
} |
|
174 | 175 |
return; |
175 | 176 |
} |
176 | 177 |
} |
... | ... | |
262 | 263 |
return null; |
263 | 264 |
} |
264 | 265 |
|
266 |
|
|
267 |
|
|
265 | 268 |
} |
Also available in: Unified diff
avoid potential NPE