Skip to content

Commit 067ea26

Browse files
committed
Fix a NullPointerException that may occur in IterableActivityMonitor if it's initialized after the application is started
1 parent 4e30d51 commit 067ea26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void onActivityResumed(Activity activity) {
6565

6666
@Override
6767
public void onActivityPaused(Activity activity) {
68-
if (currentActivity.get() == activity) {
68+
if (getCurrentActivity() == activity) {
6969
currentActivity = null;
7070
}
7171
}

0 commit comments

Comments
 (0)