3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 06:44:16 +00:00

When reading wallets, catch another possible data inconsistency and throw UnreadableWalletException.

This commit is contained in:
Andreas Schildbach 2014-11-08 10:06:31 +01:00
parent e16c357723
commit 7419556717

View File

@ -386,6 +386,8 @@ public class WalletProtobufSerializer {
return readWallet(params, null, walletProto);
} catch (IOException e) {
throw new UnreadableWalletException("Could not parse input stream to protobuf", e);
} catch (IllegalStateException e) {
throw new UnreadableWalletException("Could not parse input stream to protobuf", e);
}
}