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

GitHub | barbeau | 4 months ago
  1. 0

    NPE when adding/updating stop in database

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

    NPE when refreshing arrival data during fragment transition

    GitHub | 2 months ago | barbeau
    java.lang.NullPointerException: Attempt to invoke virtual method 'int org.onebusaway.android.ui.ArrivalsListLoader.getMinutesAfter()' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    NPE when loading arrivals for trips with null headsigns

    GitHub | 3 months ago | barbeau
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toUpperCase()' on a null object reference
  5. 0

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

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

    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 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference

      at org.onebusaway.android.provider.ObaContract$Stops.insertOrUpdate()
    2. org.onebusaway.android
      ArrivalsListFragment.onLoadFinished
      1. org.onebusaway.android.provider.ObaContract$Stops.insertOrUpdate(ObaContract.java:533)
      2. org.onebusaway.android.ui.ArrivalsListFragment.addToDB(ArrivalsListFragment.java:1507)
      3. org.onebusaway.android.ui.ArrivalsListFragment.onLoadFinished(ArrivalsListFragment.java:435)
      4. org.onebusaway.android.ui.ArrivalsListFragment.onLoadFinished(ArrivalsListFragment.java:89)
      4 frames
    3. Android Support v4
      FragmentManagerImpl$1.run
      1. android.support.v4.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:476)
      2. android.support.v4.app.LoaderManagerImpl$LoaderInfo.reportStart(LoaderManager.java:315)
      3. android.support.v4.app.LoaderManagerImpl.doReportStart(LoaderManager.java:819)
      4. android.support.v4.app.Fragment.performStart(Fragment.java:2009)
      5. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1102)
      6. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      7. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
      8. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
      9. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
      9 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:158)
      4. android.app.ActivityThread.main(ActivityThread.java:7230)
      4 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames