java.lang.NullPointerException

Stack Overflow | Rehan Yousaf | 5 months ago
  1. 0

    Android ListView Activity Throws a NullPointerException when restarting after a prolonged period of time

    Stack Overflow | 4 years ago | LiamJPeters
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.liamjpeters.retrievedata/com.liamjpeters.activities.ListActivity}: java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Android app crashing on rotation

    Stack Overflow | 3 years ago | AggieDev
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cleanlist/com.cleanlist.MainActivity}: java.lang.NullPointerException
  4. 0

    AsyncTask is not working properly

    Stack Overflow | 2 years ago | Figen Güngör
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.citylist/com.example.citylist.CityListView}: java.lang.NullPointerException

  1. Bardh 1 times, last 6 months ago
  2. Rahul 1 times, last 9 months ago
5 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

    No message provided

    at android.widget.ArrayAdapter.getCount()
  2. Android Platform
    ListView.setAdapter
    1. android.widget.ArrayAdapter.getCount(ArrayAdapter.java:330)
    2. android.widget.ListView.setAdapter(ListView.java:466)
    2 frames
  3. com.heycabs.heycabs
    SearchActivity$1.onKey
    1. com.heycabs.heycabs.SearchActivity.UpdateResults(SearchActivity.java:82)
    2. com.heycabs.heycabs.SearchActivity$1.onKey(SearchActivity.java:65)
    2 frames
  4. Android Platform
    ViewGroup.dispatchKeyEvent
    1. android.view.View.dispatchKeyEvent(View.java:7239)
    2. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1376)
    3. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1376)
    4. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1376)
    5. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1376)
    6. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1376)
    7. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1376)
    8. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1376)
    9. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1376)
    10. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1376)
    10 frames
  5. Android
    PhoneWindow.superDispatchKeyEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1937)
    2. com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1410)
    2 frames
  6. Android Platform
    Activity.dispatchKeyEvent
    1. android.app.Activity.dispatchKeyEvent(Activity.java:2388)
    1 frame
  7. Android v7
    WindowCallbackWrapper.dispatchKeyEvent
    1. android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:533)
    2. android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:53)
    3. android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:254)
    4. android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:53)
    4 frames
  8. Android
    PhoneWindow$DecorView.dispatchKeyEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1864)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:4175)
    2. android.view.ViewRootImpl.deliverKeyEvent(ViewRootImpl.java:4093)
    3. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3574)
    4. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4849)
    5. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4809)
    6. android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3384)
    7. android.os.Handler.dispatchMessage(Handler.java:107)
    8. android.os.Looper.loop(Looper.java:194)
    9. android.app.ActivityThread.main(ActivityThread.java:5409)
    9 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:525)
    2 frames
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
    2 frames
  12. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame