mirror of
https://github.com/signalapp/Signal-Server
synced 2026-09-13 00:07:14 +01:00
Add additional null check for app store's APIException#getApiError
This commit is contained in:
+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