java.lang.NullPointerException: Attempt to invoke virtual method 'void com.horaapps.leafpic.Base.HandlingAlbums.removeCurrentAlbum()' on a null object reference

GitHub | af7567 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Leafpic crashes when deleting screenshot

    GitHub | 7 months ago | af7567
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.horaapps.leafpic.Base.HandlingAlbums.removeCurrentAlbum()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void com.horaapps.leafpic.Base.HandlingAlbums.removeCurrentAlbum()' on a null object reference

      at com.horaapps.leafpic.MyApplication.removeCurrentAlbum()
    2. com.horaapps.leafpic
      PhotoPagerActivity$6.onClick
      1. com.horaapps.leafpic.MyApplication.removeCurrentAlbum(MyApplication.java:29)
      2. com.horaapps.leafpic.PhotoPagerActivity.deleteCurrentMedia(PhotoPagerActivity.java:335)
      3. com.horaapps.leafpic.PhotoPagerActivity.access$1100(PhotoPagerActivity.java:62)
      4. com.horaapps.leafpic.PhotoPagerActivity$6.onClick(PhotoPagerActivity.java:489)
      4 frames
    3. Android v7
      AlertController$ButtonHandler.handleMessage
      1. android.support.v7.app.AlertController$ButtonHandler.handleMessage(AlertController.java:157)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:148)
      3. android.app.ActivityThread.main(ActivityThread.java:5417)
      3 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:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames