From e0a0559e52f07d35b78fa30a5f63598af8f2da0d Mon Sep 17 00:00:00 2001 From: gammazero <11790789+gammazero@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:38:33 -1000 Subject: [PATCH] do not provide if nil router --- core/commands/provide.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/commands/provide.go b/core/commands/provide.go index ff432f857..4019544ce 100644 --- a/core/commands/provide.go +++ b/core/commands/provide.go @@ -588,5 +588,8 @@ func humanFull(val float64, decimals int) string { // optimistic provide call. // - Else we make a standard provide call (much slower). func provideRoot(ctx context.Context, router routing.Routing, c cid.Cid) error { + if router == nil { + return nil + } return router.Provide(ctx, c, true) }