Skip to content

Commit 11d0d22

Browse files
committed
Catch all runtime exceptions that may happen in getAdvertisingIdInfo
1 parent cf968f8 commit 11d0d22

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,15 +1291,11 @@ private String getAdvertisingId() {
12911291
advertisingId = advertisingIdInfo.getId();
12921292
}
12931293
}
1294-
} catch (IOException e) {
1295-
IterableLogger.w(TAG, e.getMessage());
1296-
} catch (GooglePlayServicesNotAvailableException e) {
1297-
IterableLogger.w(TAG, e.getMessage());
1298-
} catch (GooglePlayServicesRepairableException e) {
1299-
IterableLogger.w(TAG, e.getMessage());
13001294
} catch (ClassNotFoundException e) {
13011295
IterableLogger.d(TAG, "ClassNotFoundException: Can't track ADID. " +
13021296
"Check that play-services-ads is added to the dependencies.", e);
1297+
} catch (Exception e) {
1298+
IterableLogger.w(TAG, e.getMessage());
13031299
}
13041300
return advertisingId;
13051301
}

0 commit comments

Comments
 (0)