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

GitHub | samueltardieu | 4 months ago
  1. 0

    Intermittent crash when switching to Locus

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

    [Crash Log] Sat, 29 Nov 2014 10:18:35 GMT

    GitHub | 2 years ago | blFeedbackBot
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1001, result=-1, data=Intent { (has extras) }} to activity {us.shandian.blacklight/us.shandian.blacklight.ui.statuses.NewPostActivity}: java.lang.NullPointerException
  3. 0

    NPE in ImageSelectActivity

    GitHub | 4 years ago | Lineflyer
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { act=inline-data (has extras) }} to activity {cgeo.geocaching/cgeo.geocaching.ImageSelectActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Image posting on server from android

    Stack Overflow | 3 years ago | Waleed Ahmed
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.testing.imageposting/com.testing.imageposting.UploadImage}: java.lang.NullPointerException
  6. 0

    Retrieving conversations from Samsung Grand :Android

    Stack Overflow | 3 years ago | sanjana
    java.lang.NullPointerException

  1. Stefan Braune 1 times, last 9 months ago
2 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.os.Parcel.readException()
  2. Android Platform
    ContentResolver.query
    1. android.os.Parcel.readException(Parcel.java:1626)
    2. android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
    3. android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
    4. android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
    5. android.content.ContentResolver.query(ContentResolver.java:493)
    6. android.content.ContentResolver.query(ContentResolver.java:435)
    6 frames
  3. locus.api.android
    LocusUtils.getActiveVersion
    1. locus.api.android.ActionTools.getLocusInfo(ActionTools.java:854)
    2. locus.api.android.utils.LocusUtils.getActiveVersion(LocusUtils.java:321)
    3. locus.api.android.utils.LocusUtils.getActiveVersion(LocusUtils.java:293)
    3 frames
  4. cgeo.geocaching.apps
    NavigationAppFactory.getDefaultNavigationApplication
    1. cgeo.geocaching.apps.AbstractLocusApp.isInstalled(AbstractLocusApp.java:48)
    2. cgeo.geocaching.apps.navi.NavigationAppFactory.getInstalledNavigationApps(NavigationAppFactory.java:206)
    3. cgeo.geocaching.apps.navi.NavigationAppFactory.getNavigationAppForId(NavigationAppFactory.java:344)
    4. cgeo.geocaching.apps.navi.NavigationAppFactory.getDefaultNavigationApplication(NavigationAppFactory.java:304)
    5. cgeo.geocaching.apps.navi.NavigationAppFactory.getDefaultNavigationApplication(NavigationAppFactory.java:339)
    5 frames
  5. cgeo.geocaching
    CacheDetailActivity.onCreateOptionsMenu
    1. cgeo.geocaching.CacheMenuHandler.onPrepareOptionsMenu(CacheMenuHandler.java:99)
    2. cgeo.geocaching.CacheMenuHandler.addMenuItems(CacheMenuHandler.java:112)
    3. cgeo.geocaching.CacheMenuHandler.addMenuItems(CacheMenuHandler.java:116)
    4. cgeo.geocaching.CacheDetailActivity.onCreateOptionsMenu(CacheDetailActivity.java:570)
    4 frames
  6. Android Platform
    Activity.onCreatePanelMenu
    1. android.app.Activity.onCreatePanelMenu(Activity.java:2852)
    1 frame
  7. Android Support v4
    FragmentActivity.onCreatePanelMenu
    1. android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:262)
    1 frame
  8. Android v7
    ActionBarActivityDelegateICS$WindowCallbackWrapper.onCreatePanelMenu
    1. android.support.v7.app.ActionBarActivity.superOnCreatePanelMenu(ActionBarActivity.java:233)
    2. android.support.v7.app.ActionBarActivityDelegateICS.onCreatePanelMenu(ActionBarActivityDelegateICS.java:146)
    3. android.support.v7.app.ActionBarActivity.onCreatePanelMenu(ActionBarActivity.java:200)
    4. android.support.v7.app.ActionBarActivityDelegateICS$WindowCallbackWrapper.onCreatePanelMenu(ActionBarActivityDelegateICS.java:293)
    4 frames
  9. Android
    PhoneWindow$1.run
    1. com.android.internal.policy.PhoneWindow.preparePanel(PhoneWindow.java:617)
    2. com.android.internal.policy.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:989)
    3. com.android.internal.policy.PhoneWindow$1.run(PhoneWindow.java:320)
    3 frames
  10. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    3. android.view.Choreographer.doFrame(Choreographer.java:603)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    5. android.os.Handler.handleCallback(Handler.java:739)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:148)
    8. android.app.ActivityThread.main(ActivityThread.java:5461)
    8 frames
  11. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  12. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames