Matt Bolt пре 4 година
родитељ
комит
f643f3dbac
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      pkg/clustercache/clusterimporter.go

+ 5 - 0
pkg/clustercache/clusterimporter.go

@@ -60,6 +60,11 @@ func (ci *ClusterImporter) update(data []byte) {
 
 // Run starts the watcher processes
 func (ci *ClusterImporter) Run() {
+	if ci.source == nil {
+		log.Errorf("ClusterImporter source does not exist, not running")
+		return
+	}
+
 	exists, err := ci.source.Exists()
 	if err != nil {
 		log.Errorf("Failed to import source for cluster: %s", err)