Bugfix: crashing on android 5 & 6 (new wallet, receive, ...) (#83)

* getAddress() mess fixed

* v0.8.0.3
This commit is contained in:
m2049r
2017-09-23 18:23:41 +02:00
committed by GitHub
parent cc46dc06c4
commit 793d984200
21 changed files with 3 additions and 9 deletions
@@ -36,7 +36,6 @@ public class Wallet {
Wallet(long handle) {
this.handle = handle;
getAddress(); // cache address for later
}
public enum Status {
@@ -73,10 +72,6 @@ public class Wallet {
if (address == null) {
address = getAddressJ();
}
if (!Wallet.isAddressValid(address, WalletManager.getInstance().isTestNet())) {
// just die!
throw new IllegalStateException("Wallet returned invalid address: " + address);
}
return address;
}