From ac23b8e79e0f84fffbeedd0ccb9b6e5cd41c65b4 Mon Sep 17 00:00:00 2001 From: Chris Eager Date: Thu, 12 Mar 2026 14:34:21 -0500 Subject: [PATCH] Add additional null check for app store's `APIException#getApiError` --- .../textsecuregcm/subscriptions/AppleAppStoreClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/subscriptions/AppleAppStoreClient.java b/service/src/main/java/org/whispersystems/textsecuregcm/subscriptions/AppleAppStoreClient.java index 5c69117b9..9f5bd11e8 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/subscriptions/AppleAppStoreClient.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/subscriptions/AppleAppStoreClient.java @@ -184,7 +184,7 @@ public class AppleAppStoreClient { private static boolean shouldRetry(Throwable e) { return e instanceof APIException apiException && switch (apiException.getApiError()) { case ORIGINAL_TRANSACTION_ID_NOT_FOUND_RETRYABLE, GENERAL_INTERNAL_RETRYABLE, APP_NOT_FOUND_RETRYABLE -> true; - default -> false; + case null, default -> false; }; }