Skip to content

Commit

Permalink
Skip nil BidEntries in GetAcceptedBidHistory (deso-protocol#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazynina authored May 17, 2022
1 parent a214fda commit 59dd55f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routes/nft.go
Original file line number Diff line number Diff line change
Expand Up @@ -2162,6 +2162,9 @@ func (fes *APIServer) GetAcceptedBidHistory(ww http.ResponseWriter, req *http.Re
}
var acceptedBidEntryResponses []*NFTBidEntryResponse
for _, acceptedBidEntry := range *acceptedBidEntries {
if acceptedBidEntry == nil {
continue
}
acceptedBidEntryResponses = append(acceptedBidEntryResponses,
fes._bidEntryToResponse(
acceptedBidEntry, nil, utxoView, false, false))
Expand Down

0 comments on commit 59dd55f

Please sign in to comment.