From 8b912c47e19353a419c8717f7a839b0d63f5cc6c Mon Sep 17 00:00:00 2001
From: Determinant <tederminant@gmail.com>
Date: Fri, 3 Aug 2018 17:50:32 -0400
Subject: ...

---
 include/hotstuff/consensus.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'include')

diff --git a/include/hotstuff/consensus.h b/include/hotstuff/consensus.h
index b176eb4..1528b40 100644
--- a/include/hotstuff/consensus.h
+++ b/include/hotstuff/consensus.h
@@ -212,7 +212,7 @@ struct Vote: public Serializable {
         voter(other.voter),
         bqc_hash(other.bqc_hash),
         blk_hash(other.blk_hash),
-        cert(other.cert->clone()),
+        cert(other.cert ? other.cert->clone() : nullptr),
         hsc(other.hsc) {}
 
     Vote(Vote &&other) = default;
-- 
cgit v1.2.3-70-g09d2