From 027ad79f9c224d15f102500f7036adf27164a5a3 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Fri, 26 Jun 2015 17:54:02 -0700 Subject: [PATCH] Fix String() for nil votes, and non-full Validation --- types/vote.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/vote.go b/types/vote.go index 30205d884..4fca422d6 100644 --- a/types/vote.go +++ b/types/vote.go @@ -54,6 +54,9 @@ func (vote *Vote) Copy() *Vote { } func (vote *Vote) String() string { + if vote == nil { + return "nil-Vote" + } var typeString string switch vote.Type { case VoteTypePrevote: