Project

General

Profile

« Previous | Next » 

Revision 68699322

Added by Katja Luther over 6 years ago

fix NPE for cloneClassification

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/CloneClassificationHandlerE4.java
47 47
        Object selectedElement = selection.getFirstElement();
48 48
        if (selectedElement instanceof TaxonNode && !((TaxonNode)selectedElement).hasTaxon()) {
49 49
            Classification classification = ((TaxonNode)selectedElement).getClassification();
50
            CloneClassificationWizard wizard = ContextInjectionFactory.make(CloneClassificationWizard.class, context);
50
            CloneClassificationWizard wizard = new CloneClassificationWizard();
51
            ContextInjectionFactory.inject(wizard, context);
52
//            CloneClassificationWizard wizard = ContextInjectionFactory.make(CloneClassificationWizard.class, context);
51 53
            wizard.init(classification);
52 54
            WizardDialog dialog = new WizardDialog(shell, wizard);
53 55
            dialog.open();

Also available in: Unified diff