From 677c1d83f5f4549e34dea4178fee8b77e82fe189 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Mon, 5 Dec 2016 20:45:58 -0500 Subject: [PATCH] Explicitly returning a zero byte --- src/main/java/com/luminiasoft/bitshares/Memo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/luminiasoft/bitshares/Memo.java b/src/main/java/com/luminiasoft/bitshares/Memo.java index 5e99267..1f95c22 100644 --- a/src/main/java/com/luminiasoft/bitshares/Memo.java +++ b/src/main/java/com/luminiasoft/bitshares/Memo.java @@ -20,7 +20,7 @@ public class Memo implements ByteSerializable { @Override public byte[] toBytes() { if ((this.from == null) || (this.to == null) || (this.nonce == null) ||(this.message == null)){ - return new byte[1]; + return new byte[] { (byte) 0 }; } byte[] result = new byte[this.from.length+this.to.length+this.nonce.length+this.message.length];