ref #6921 Avoid double save editor warning when closing wizard
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 31 Oct 2017 08:48:05 +0000 (09:48 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 31 Oct 2017 08:48:05 +0000 (09:48 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/AbstractImportWizardE4.java

index 6850f9613caf2ad1eb38ef9e00d03353d3b60b43..d171aba3d38773698adb6732fd89262686763586 100644 (file)
@@ -70,7 +70,7 @@ public abstract class AbstractImportWizardE4<CONFIG extends IIoConfigurator> ext
 
        @Override
        public void setContainer(IWizardContainer wizardContainer) {
-               if(existUnsavedEditors()){
+               if(existUnsavedEditors() && wizardContainer!=null){
                    MessageDialog.open(MessageDialog.WARNING, getShell(), "Unsaved editors", "Please save all open editors before executing " +
                            "an import operation. The import operation will be cancelled", SWT.NONE);
                }