java.lang.NullPointerException: Attempt to get length of null array

GitHub | Almtesh | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 188#228543626

    GitHub | 8 months ago | Almtesh
    java.lang.NullPointerException: Attempt to get length of null array
  2. 0

    GitHub comment 148#217453056

    GitHub | 10 months ago | craftyguy
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to get length of null array

      at com.horaapps.leafpic.Base.Album.updatePhotos()
    2. com.horaapps.leafpic
      PhotoPagerActivity.onCreate
      1. com.horaapps.leafpic.Base.Album.updatePhotos(Album.java:79)
      2. com.horaapps.leafpic.Base.Album.<init>(Album.java:64)
      3. com.horaapps.leafpic.PhotoPagerActivity.onCreate(PhotoPagerActivity.java:101)
      3 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5990)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
      5. android.app.ActivityThread.access$800(ActivityThread.java:156)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:211)
      9. android.app.ActivityThread.main(ActivityThread.java:5371)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:945)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:740)
      2 frames