Skip to content

Commit 8e5184a

Browse files
committed
Fix
1 parent d84bbeb commit 8e5184a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/io/github/ratul/topactivity/model/NotificationMonitor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ public static PendingIntent getPendingIntent(Context context, int command) {
9999
}
100100

101101
public static void cancelNotification(Context context) {
102-
notifManager.cancel(NOTIFICATION_ID);
102+
if (notifManager != null)
103+
notifManager.cancel(NOTIFICATION_ID);
103104
}
104105

105106
@Override

0 commit comments

Comments
 (0)