mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 06:46:47 +00:00
Add additional null check for app store's APIException#getApiError
This commit is contained in:
1 parent
af2d276f37
commit
ac23b8e79e
1 file changed
+1
-1
+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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user