diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index 55e1eff02..5326d5134 100755 --- a/basilisk/basilisk.c +++ b/basilisk/basilisk.c @@ -1205,8 +1205,12 @@ HASH_ARRAY_STRING(basilisk,value,hash,vals,hexstr) { if ( (value= SATOSHIDEN*jdouble(txoutjson,"value")) == 0 ) value = SATOSHIDEN*jdouble(txoutjson,"amount"); - if ( (coinaddr= jstr(txoutjson,"address")) == 0 && (addrs= jarray(&n,txoutjson,"addresses")) != 0 && n > 0 ) - coinaddr = jstri(addrs,0); + if ( (coinaddr= jstr(txoutjson,"address")) == 0 ) + { + if ( (addrs= jarray(&n,txoutjson,"addresses")) != 0 && n > 0 ) + coinaddr = jstri(addrs,0); + printf("no address, check addrs.[%d] %p coinaddr.%p\n",n,addrs,coinaddr); + } if ( coinaddr != 0 && value != 0 ) { retjson = cJSON_CreateObject();