mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00: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