Project

General

Profile

« Previous | Next » 

Revision f63d0c56

Added by Patrick Plitzner over 6 years ago

ref #7086 Fix potential ClassCastException

View differences:

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