diff --git a/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java b/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java index 567f9c21..ad9990c2 100644 --- a/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java +++ b/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java @@ -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); } }