java.lang.NullPointerException

Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference

Solutions on the web21090

  • Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference
  • Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference
  • Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference at android.content.ContextWrapper.getApplicationInfo(ContextWrapper.java:160) at android.app.Notification$Builder.<init>(Notification.java:2287) at android.support.v4.app.NotificationCompatApi21$Builder.<init>(NotificationCompatApi21.java:68) at android.support.v4.app.NotificationCompat$NotificationCompatImplApi21.build(NotificationCompat.java:759) at android.support.v4.app.NotificationCompat$Builder.build(NotificationCompat.java:1559) at com.tabs.activity.NotificationService.showNotification(NotificationService.java:113) at com.tabs.activity.Comments.createComment(Comments.java:146)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    2 times, 3 weeks ago
    4 times, 5 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    5 more bugmates