Verified Commit fa1148ea authored by Sarath's avatar Sarath
Browse files

Check hash is empty or not in getNotifTxConfirmations

parent 0e07d401
......@@ -1261,6 +1261,12 @@ public class APIFactory {
public synchronized int getNotifTxConfirmations(String hash) {
if(hash==null){
return 0;
}
if(hash.isEmpty()){
return 0;
}
String _url = WebUtil.getAPIUrl(context);
// info("APIFactory", "Notif tx:" + hash);
......@@ -1272,7 +1278,6 @@ public class APIFactory {
url.append("tx/");
url.append(hash);
url.append("?fees=1");
// info("APIFactory", "Notif tx:" + url.toString());
url.append("&at=");
url.append(getAccessToken());
String response = WebUtil.getInstance(null).getURL(url.toString());
......
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