mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-10 01:56:08 +00:00
panic fix
This commit is contained in:
+1
-1
@@ -380,7 +380,7 @@ func (voteSet *VoteSet) GetByIndex(valIndex int32) *Vote {
|
||||
|
||||
// List returns a copy of the list of votes stored by the VoteSet.
|
||||
func (voteSet *VoteSet) List() []Vote {
|
||||
if voteSet == nil {
|
||||
if voteSet == nil || voteSet.votes == nil {
|
||||
return nil
|
||||
}
|
||||
votes := make([]Vote, len(voteSet.votes))
|
||||
|
||||
Reference in New Issue
Block a user