From 86df1852edac4a021e58f320ba6e163d0e4086d0 Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Sat, 29 Oct 2022 13:11:42 +0200 Subject: [PATCH] Fix NullPointerException --- .../java/de/mm20/launcher2/ui/launcher/search/apps/AppItemVM.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/main/java/de/mm20/launcher2/ui/launcher/search/apps/AppItemVM.kt b/ui/src/main/java/de/mm20/launcher2/ui/launcher/search/apps/AppItemVM.kt index 29398130..62b875c5 100644 --- a/ui/src/main/java/de/mm20/launcher2/ui/launcher/search/apps/AppItemVM.kt +++ b/ui/src/main/java/de/mm20/launcher2/ui/launcher/search/apps/AppItemVM.kt @@ -106,7 +106,7 @@ class AppItemVM( fun openNotification(notification: StatusBarNotification) { try { - notification.notification.contentIntent.send() + notification.notification.contentIntent?.send() } catch (e: PendingIntent.CanceledException) {} }