From 46f549b7835306fc5c04ab31045ac94599f62c64 Mon Sep 17 00:00:00 2001 From: Marco Martinez Date: Wed, 18 Oct 2023 14:39:42 -0600 Subject: [PATCH] whooooooooopsie! (#579) --- .../clientlib/protocol/MobileWalletAdapterSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/clientlib/src/main/java/com/solana/mobilewalletadapter/clientlib/protocol/MobileWalletAdapterSession.java b/android/clientlib/src/main/java/com/solana/mobilewalletadapter/clientlib/protocol/MobileWalletAdapterSession.java index de857760a..aa4b6e637 100644 --- a/android/clientlib/src/main/java/com/solana/mobilewalletadapter/clientlib/protocol/MobileWalletAdapterSession.java +++ b/android/clientlib/src/main/java/com/solana/mobilewalletadapter/clientlib/protocol/MobileWalletAdapterSession.java @@ -130,6 +130,8 @@ protected void handleSessionEstablishmentMessage(@NonNull byte[] payload) Arrays.copyOfRange(payload, ECDSAKeys.ENCODED_PUBLIC_KEY_LENGTH_BYTES, payload.length); sessionProperties = parseSessionProps(encryptedSessionProperties); } + } catch (IndexOutOfBoundsException ignored) { + Log.w(TAG, "could not parse session properties, falling back on legacy session"); } finally { mSessionProperties = sessionProperties; }