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());
|
||||
long index = db.bitcoinAddressDao().getLastExternalAddress(request.getAccount().getId());
|
||||
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());
|
||||
}else {
|
||||
index++;
|
||||
|
|
Loading…
Reference in a new issue