diff --git a/command/debug.go b/command/debug.go index aa2fc1d48b7f..3fd54ea4f99e 100644 --- a/command/debug.go +++ b/command/debug.go @@ -814,7 +814,8 @@ func (c *DebugCommand) collectReplicationStatus(ctx context.Context) { if err != nil { c.captureError("replication-status", err) } - if replicationEntry := secret.Data; replicationEntry != nil { + if secret != nil && secret.Data != nil { + replicationEntry := secret.Data replicationEntry["timestamp"] = time.Now().UTC() c.replicationStatusCollection = append(c.replicationStatusCollection, replicationEntry) }