Skip to content

Commit e350313

Browse files
committed
Remove notifier if exists
1 parent e5608d6 commit e350313

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

parse/src/main/java/com/parse/ParseCommandCache.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ public static int getPendingCount() {
144144
public void onDestroy() {
145145
// TODO (grantland): pause #6484855
146146

147-
notifier.removeListener(listener);
147+
if (notifier != null) {
148+
notifier.removeListener(listener);
149+
}
148150
}
149151

150152
// Set the maximum number of times to retry before assuming disconnection.

0 commit comments

Comments
 (0)