mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-29 18:08:58 +03:00
Notification manager shouldn’t be null
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
59e9da8984
commit
075cd9f79f
1 changed files with 3 additions and 1 deletions
|
@ -195,7 +195,9 @@ public class MagicFirebaseMessagingService extends FirebaseMessagingService {
|
|||
crc32 = new CRC32();
|
||||
crc32.update(stringForCrc.getBytes());
|
||||
|
||||
notificationManager.notify((int) crc32.getValue(), notificationBuilder.build());
|
||||
if (notificationManager != null) {
|
||||
notificationManager.notify((int) crc32.getValue(), notificationBuilder.build());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue