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

This commit is contained in:
Chris Eager
2026-03-12 14:34:21 -05:00
committed by ravi-signal
parent af2d276f37
commit ac23b8e79e

View File

@@ -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;
};
}