java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amenhotep.filelister/com.amenhotep.filelister.MainActivity}: java.lang.NullPointerException

Stack Overflow | Amenhotep | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Android display SD card files throws java.lang.NullPointerException

    Stack Overflow | 8 months ago | Amenhotep
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amenhotep.filelister/com.amenhotep.filelister.MainActivity}: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.amenhotep.filelister.MainActivity.GetFiles()
    2. com.amenhotep.filelister
      MainActivity.onCreate
      1. com.amenhotep.filelister.MainActivity.GetFiles(MainActivity.java:44)
      2. com.amenhotep.filelister.MainActivity.onCreate(MainActivity.java:24)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5343)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2343)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2441)
      5. android.app.ActivityThread.access$900(ActivityThread.java:151)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
      7. android.os.Handler.dispatchMessage(Handler.java:110)
      8. android.os.Looper.loop(Looper.java:193)
      9. android.app.ActivityThread.main(ActivityThread.java:5345)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame