From 83acfc02811437aa48bbbea59807d809a7b683af Mon Sep 17 00:00:00 2001 From: Nikunj Dhameliya Date: Fri, 27 Mar 2020 18:44:17 +0530 Subject: [PATCH] Resolved issue of null value because of json data stored as metadata with transaction --- src/main/java/multichain/object/TransactionWallet.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/multichain/object/TransactionWallet.java b/src/main/java/multichain/object/TransactionWallet.java index 7f9d0e3..681c0b8 100644 --- a/src/main/java/multichain/object/TransactionWallet.java +++ b/src/main/java/multichain/object/TransactionWallet.java @@ -22,7 +22,7 @@ public class TransactionWallet { Create create = null; AssetWalletTransaction issue = null; List items = null; - List data = null; + Object data = null; Long confirmations = null; String blockhash = null; Long blockindex = null; @@ -47,7 +47,7 @@ public TransactionWallet() { addresses = new ArrayList(); permissions = new ArrayList(); issue = null; - data = new ArrayList(); + data = new Object(); items = new ArrayList<>(); } @@ -220,14 +220,14 @@ public void setItems(List items) { /** * @return the data */ - public List getData() { + public Object getData() { return data; } /** * @param data the data to set */ - public void setData(List data) { + public void setData(Object data) { this.data = data; }