Skip to content

Commit

Permalink
fix nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
leviok authored and codefather-filestar committed Jun 17, 2021
1 parent cbd4eb8 commit d4192e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node/impl/full/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ func (a *StateAPI) StateSectorPreCommitInfo(ctx context.Context, maddr address.A
pci, err := stmgr.PreCommitInfo(ctx, a.StateManager, maddr, n, ts)
if err != nil {
return miner.SectorPreCommitOnChainInfo{}, err
} else if pci == nil {
return miner.SectorPreCommitOnChainInfo{}, nil
}

return *pci, err
Expand Down

0 comments on commit d4192e3

Please sign in to comment.