         if self.snapshotsloggdata!.remotecatalogstodelete!.count == 0 {
             self.snapshotsloggdata!.remotecatalogstodelete = nil
         }
-        arguments = SnapshotDeleteCatalogsArguments(config: self.config!, remotecatalog: remotecatalog)
-        deletecommand = SnapshotCommandDeleteCatalogs(command: arguments?.getCommand(), arguments: arguments?.getArguments())
-        deletecommand?.setdelegate(object: self)
-        deletecommand?.executeProcess(outputprocess: nil)
+        if let config = self.config {
+            arguments = SnapshotDeleteCatalogsArguments(config: config, remotecatalog: remotecatalog)
+            deletecommand = SnapshotCommandDeleteCatalogs(command: arguments?.getCommand(), arguments: arguments?.getArguments())
+            deletecommand?.setdelegate(object: self)
+            deletecommand?.executeProcess(outputprocess: nil)
+        }
     }
 
     // setting which table row is selected

        }
    }

    func getSourceindex(index: Int) {
        self.hiddenID = index
        self.config = self.configurations?.getConfigurations()[self.configurations?.getIndex(index) ?? -1]
        guard self.config?.task == ViewControllerReference.shared.snapshot else {

            self.index = nil
            return
        }
        if let config = self.config {
            self.snapshotsloggdata = SnapshotsLoggData(config: config, getsnapshots: true)
            self.localCatalog.stringValue = config.localCatalog
            self.offsiteCatalog.stringValue = config.offsiteCatalog
            self.offsiteUsername.stringValue = config.offsiteUsername
            self.backupID.stringValue = config.backupID
            self.info.stringValue = Infosnapshots().info(num: 0)
            self.gettinglogs.startAnimation(nil)
        }
    }

    private func preselectcomboboxes() {
