'NullPointerException on createNotification flutter_local_notification package

So in my live application this error is coming from a long period of time and I am still not able to find anything, initially I thought this is because of the app_icon I am using for the notifications, but nothing changed after replacing the icon. RN the occurrence for this error is 1.7K and I have no idea what should I do. Could anyone help me?

java.lang.RuntimeException: 
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:4238)
  at android.app.ActivityThread.access$1700 (ActivityThread.java:274)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2113)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:8167)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)
Caused by: java.lang.NullPointerException: 
  at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.createNotification (Unknown Source:183)
  at com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin.showNotification (Unknown Source)
  at com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver.onReceive (Unknown Source:76)
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:4229)
  at android.app.ActivityThread.access$1700 (ActivityThread.java:274)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2113)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:8167)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source