Skip to content

Commit 8beee56

Browse files
authored
Merge pull request #117 from Iterable/bugfix/MOB-489-fix-activity-monitor-npe
[MOB-489] Fix a NullPointerException that may occur in IterableActivityMonitor if it's initialized after the application is started
2 parents 4e30d51 + 067ea26 commit 8beee56

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)