Revision f63d0c56
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/WorkingSetComposite.java | ||
---|---|---|
144 | 144 |
} |
145 | 145 |
public TaxonNode getTaxonNode(){ |
146 | 146 |
ITreeSelection selection = (ITreeSelection) taxonNodeTree.getSelection(); |
147 |
if(selection!=null){ |
|
147 |
if(selection!=null && selection.getFirstElement() instanceof TaxonNode){
|
|
148 | 148 |
return (TaxonNode) selection.getFirstElement(); |
149 | 149 |
} |
150 | 150 |
return null; |
Also available in: Unified diff
ref #7086 Fix potential ClassCastException