address review

This commit is contained in:
Aayush 2022-10-12 13:42:46 -04:00
parent ce17decf3b
commit 65e37c29e4

View File

@ -33,7 +33,7 @@ func (m *Sealing) handleWaitDeals(ctx statemachine.Context, sector SectorInfo) e
for _, piece := range sector.Pieces {
used += piece.Piece.Size.Unpadded()
if piece.DealInfo.DealProposal.EndEpoch > lastDealEnd {
if piece.DealInfo != nil && piece.DealInfo.DealProposal.EndEpoch > lastDealEnd {
lastDealEnd = piece.DealInfo.DealProposal.EndEpoch
}
}