From f20cb1132dfe53afa7552b4b8a81f4db01bc0f19 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Sat, 5 Sep 2015 19:23:18 +0200 Subject: [PATCH] WalletProtobufSerializer: Rethrow IllegalArgumentException when loading wallets. --- .../main/java/org/bitcoinj/store/WalletProtobufSerializer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java b/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java index 14d51a93..bfd32213 100644 --- a/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java +++ b/core/src/main/java/org/bitcoinj/store/WalletProtobufSerializer.java @@ -420,6 +420,8 @@ public class WalletProtobufSerializer { 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); + } catch (IllegalArgumentException e) { + throw new UnreadableWalletException("Could not parse input stream to protobuf", e); } }