fix calculate uri
This commit is contained in:
parent
6e81192b37
commit
9c6db3a6ea
1 changed files with 1 additions and 1 deletions
|
@ -500,7 +500,7 @@ public class GeneralAccountManager implements CryptoAccountManager, CryptoNetInf
|
||||||
CrystalDatabase db = CrystalDatabase.getAppDatabase(request.getContext());
|
CrystalDatabase db = CrystalDatabase.getAppDatabase(request.getContext());
|
||||||
long index = db.bitcoinAddressDao().getLastExternalAddress(request.getAccount().getId());
|
long index = db.bitcoinAddressDao().getLastExternalAddress(request.getAccount().getId());
|
||||||
BitcoinAddress address = db.bitcoinAddressDao().getExternalByIndex(index);
|
BitcoinAddress address = db.bitcoinAddressDao().getExternalByIndex(index);
|
||||||
if(db.bitcoinTransactionDao().getGtxIOByAddress(address.getAddress()).size()<=0){
|
if(address != null && db.bitcoinTransactionDao().getGtxIOByAddress(address.getAddress()).size()<=0){
|
||||||
uri.append(address.getAddress());
|
uri.append(address.getAddress());
|
||||||
}else {
|
}else {
|
||||||
index++;
|
index++;
|
||||||
|
|
Loading…
Reference in a new issue