From 1fbd86e06ae9d6016a9f4d502a0731aa9d7f1dcb Mon Sep 17 00:00:00 2001 From: Hannah Howard Date: Thu, 1 Jul 2021 08:06:39 -0700 Subject: [PATCH] fix(tasks): fix panic in retrieval (#264) Fix panic in retrieval code --- tasks/retrieval_deal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/retrieval_deal.go b/tasks/retrieval_deal.go index d8a469a..67b45af 100644 --- a/tasks/retrieval_deal.go +++ b/tasks/retrieval_deal.go @@ -265,7 +265,7 @@ func (de *retrievalDealExecutor) executeAndMonitorDeal(ctx context.Context, upda return err } for _, i := range imports { - if i.Root.String() == de.task.PayloadCID.String() { + if i.Root != nil && i.Root.String() == de.task.PayloadCID.String() { if err := de.node.ClientRemoveImport(de.ctx, i.Key); err != nil { return err }