mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 13:44:11 +01:00
Fix crash in case wallet is so inconsistent that even .toString() fails.
This commit is contained in:
parent
b52faae013
commit
d772244dc9
@ -531,7 +531,13 @@ public class Wallet implements Serializable, BlockChainListener, PeerFilterProvi
|
||||
}
|
||||
}
|
||||
|
||||
if (!success) log.error(toString());
|
||||
if (!success) {
|
||||
try {
|
||||
log.error(toString());
|
||||
} catch (RuntimeException x) {
|
||||
log.error("Printing inconsistent wallet failed", x);
|
||||
}
|
||||
}
|
||||
return success;
|
||||
} finally {
|
||||
lock.unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user