flutter_notification_listener icon indicating copy to clipboard operation
flutter_notification_listener copied to clipboard

Notification Event - Null Pointer Exception

Open Destiny-Ed opened this issue 2 years ago • 4 comments

I am getting the below crashes on Android API that are above 10

NotificationEvent$Companion.convertIconToByteArray java.lang.NullPointerException - icon.loadDrawable(context) must not be null

Crashlytics caught the error in NotificationEvent.kt:135 class

Destiny-Ed avatar Nov 09 '23 15:11 Destiny-Ed

@Destiny-Ed Yea I do have this issue, app crashing. Did you find anything to fix?

farisk218 avatar Jan 02 '24 14:01 farisk218

Screenshot 2024-01-04 at 4 38 11 PM I tried this, and now the crash has not happened yet.

farisk218 avatar Jan 04 '24 12:01 farisk218

@farisk218 thank you for your attention. Can you provide more information about this crash like the full logs, and how did you fix this issue. I cannot find the base code in your screenshot.

jiusanzhou avatar Jan 05 '24 12:01 jiusanzhou

Screenshot 2024-01-05 at 4 18 15 PM @jiusanzhou Don't know the exact issue, I think "icon.loadDrawable(context)" getting null in some cases. [NotificationEvent.kt]

farisk218 avatar Jan 05 '24 12:01 farisk218