java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

GitHub | grote | 5 months ago
  1. 0

    NPE in onTripRetrieved()

    GitHub | 5 months ago | grote
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  2. 0

    Intent is not working in my RecyclerView

    Stack Overflow | 2 years ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  3. 0

    NullPointerException on context.getPackageName when creating Intent

    Stack Overflow | 2 years ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    android.content.Context.getPackageName()' on a null object reference

    Stack Overflow | 2 years ago | Karthikeyan Ve
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  6. 0

    Android App crashed when moving from one activity to another

    Stack Overflow | 2 years ago
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

  1. balajivaishnav 2 times, last 9 months ago
12 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

    at android.content.ComponentName.<init>()
  2. Android Platform
    Intent.<init>
    1. android.content.ComponentName.<init>(ComponentName.java:128)
    2. android.content.Intent.<init>(Intent.java:4653)
    2 frames
  3. de.grobox.liberario
    AsyncQueryTripsTask.onPostExecute
    1. de.grobox.liberario.fragments.DirectionsFragment.onTripRetrieved(DirectionsFragment.java:297)
    2. de.grobox.liberario.tasks.AsyncQueryTripsTask.onPostExecute(AsyncQueryTripsTask.java:152)
    3. de.grobox.liberario.tasks.AsyncQueryTripsTask.onPostExecute(AsyncQueryTripsTask.java:42)
    3 frames
  4. Android Platform
    AsyncTask.finish
    1. android.os.AsyncTask.finish(AsyncTask.java:651)
    1 frame