Skip to content

Commit

Permalink
fix get sector nil pointer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zlhwdsz authored and codefather-filestar committed Jun 17, 2021
1 parent 0deae85 commit cbd4eb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1759,6 +1759,9 @@ var stateSectorCmd = &cli.Command{
if err != nil {
return err
}
if si == nil {
return xerrors.Errorf("sector %d for miner %s not found", sid, maddr)
}

fmt.Println("SectorNumber: ", si.SectorNumber)
fmt.Println("SealProof: ", si.SealProof)
Expand Down

0 comments on commit cbd4eb8

Please sign in to comment.