Skip to content

Commit ac23b8e

Browse files
eager-signalravi-signal
authored andcommitted
Add additional null check for app store's APIException#getApiError
1 parent af2d276 commit ac23b8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

service/src/main/java/org/whispersystems/textsecuregcm/subscriptions/AppleAppStoreClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private static Set<InputStream> decodeRootCerts(final List<String> rootCerts) {
184184
private static boolean shouldRetry(Throwable e) {
185185
return e instanceof APIException apiException && switch (apiException.getApiError()) {
186186
case ORIGINAL_TRANSACTION_ID_NOT_FOUND_RETRYABLE, GENERAL_INTERNAL_RETRYABLE, APP_NOT_FOUND_RETRYABLE -> true;
187-
default -> false;
187+
case null, default -> false;
188188
};
189189
}
190190

0 commit comments

Comments
 (0)