Skip to content

Commit

Permalink
fix(tasks): fix panic in retrieval (#264)
Browse files Browse the repository at this point in the history
Fix panic in retrieval code
  • Loading branch information
hannahhoward authored Jul 1, 2021
1 parent 55740f5 commit 1fbd86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/retrieval_deal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1fbd86e

Please sign in to comment.