diff --git a/node/impl/full/state.go b/node/impl/full/state.go index 5e01eaa5b..3ffe7b6b7 100644 --- a/node/impl/full/state.go +++ b/node/impl/full/state.go @@ -792,6 +792,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{}, xerrors.Errorf("precommit info is not exists") } return *pci, err