Commit e223d957 authored by Brad's avatar Brad Committed by Daniel Connolly

Prevent hasTransactions returning null. Afaik it only does this on the block...

Prevent hasTransactions returning null. Afaik it only does this on the block currently being minded.
parent 5ab54c84
......@@ -1004,7 +1004,8 @@ public class Block extends Message {
* purely a header).
*/
public boolean hasTransactions() {
return !this.transactions.isEmpty();
// Avoid returning null.
return (this.transactions != null && !this.transactions.isEmpty());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment