Skip to content

Commit 9a5f535

Browse files
authored
Merge pull request #127 from Iterable/bugfix/MOB-580-fix-getAdvertisingId-npe
[MOB-580] Fix a possible NullPointerException in getAdvertisingId
2 parents 5f92a4b + c270787 commit 9a5f535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ private String getAdvertisingId() {
13151315
IterableLogger.d(TAG, "ClassNotFoundException: Can't track ADID. " +
13161316
"Check that play-services-ads is added to the dependencies.", e);
13171317
} catch (Exception e) {
1318-
IterableLogger.w(TAG, e.getMessage());
1318+
IterableLogger.w(TAG, "Error while fetching advertising ID", e);
13191319
}
13201320
return advertisingId;
13211321
}

0 commit comments

Comments
 (0)