Add additional null check for app store's APIException#getApiError

This commit is contained in:
Chris Eager authored and ravi-signal committed 2026-03-12 16:36:32 -05:00
1 parent af2d276f37
commit ac23b8e79e
1 file changed
+1 -1
@@ -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;
};
}