Skip to content
This repository has been archived by the owner on Sep 8, 2019. It is now read-only.

Crash after rotation in grid multiple selection #260

Open
arthur-star opened this issue Aug 11, 2019 · 0 comments
Open

Crash after rotation in grid multiple selection #260

arthur-star opened this issue Aug 11, 2019 · 0 comments

Comments

@arthur-star
Copy link

Description

Crash after rotation in grid multiple selection

Versions and device

  • Android 9
  • Camera Roll v1.0.6
  • HUAWEI MATE 10

Steps to Reproduce

  1. Go to folder
  2. Long click a photo and go into multiple selection mode
  3. Rotate the phone and crash

Actual behaviour

Crash after rotation.

Expected behaviour

No crash.

Logs

2019-08-11 15:14:16.502 24592-24592/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: us.koller.cameraroll, PID: 24592
    java.lang.RuntimeException: Unable to start activity ComponentInfo{us.koller.cameraroll/us.koller.cameraroll.ui.AlbumActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.Menu.findItem(int)' on a null object reference
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3430)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3614)
        at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5527)
        at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5418)
        at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:69)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7625)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
     Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.Menu.findItem(int)' on a null object reference
        at us.koller.cameraroll.ui.AlbumActivity.g_(SourceFile:787)
        at us.koller.cameraroll.a.b.a(SourceFile:163)
        at us.koller.cameraroll.ui.AlbumActivity.a(SourceFile:391)
        at us.koller.cameraroll.ui.AlbumActivity.a(SourceFile:74)
        at us.koller.cameraroll.ui.AlbumActivity$17.a(SourceFile:371)
        at us.koller.cameraroll.data.b.b$6.run(SourceFile:246)
        at android.app.Activity.runOnUiThread(Activity.java:6595)
        at us.koller.cameraroll.data.b.b.a(SourceFile:243)
        at us.koller.cameraroll.ui.AlbumActivity.onCreate(SourceFile:366)
        at android.app.Activity.performCreate(Activity.java:7458)
        at android.app.Activity.performCreate(Activity.java:7448)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1286)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3409)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3614) 
        at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5527) 
        at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5418) 
        at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:69) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199) 
        at android.os.Handler.dispatchMessage(Handler.java:112) 
        at android.os.Looper.loop(Looper.java:216) 
        at android.app.ActivityThread.main(ActivityThread.java:7625) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987) 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant