Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException: Unable to resume activity #48

Open
anlalalu opened this issue Jan 10, 2020 · 0 comments
Open

NullPointerException: Unable to resume activity #48

anlalalu opened this issue Jan 10, 2020 · 0 comments

Comments

@anlalalu
Copy link

Reproduction Steps

This crash is triggered by an automatic testing tool with this shell instruction:

adb shell am start -n org.passwordmaker.android/org.passwordmaker.android.PatternDataListActivity

Stack Trace

E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.passwordmaker.android, PID: 19514
java.lang.RuntimeException: Unable to resume activity {org.passwordmaker.android/org.passwordmaker.android.PatternDataListActivity}: java.lang.NullPointerException: Can not find account by id: null
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2774)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2803)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2238)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException: Can not find account by id: null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:993)
at org.passwordmaker.android.PatternDataListFragment.setAccountId(PatternDataListFragment.java:54)
at org.passwordmaker.android.PatternDataListActivity.onResume(PatternDataListActivity.java:64)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
at android.app.Activity.performResume(Activity.java:5310)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2764)

Debug info

App Version = the latest master branch

Android Version = 4.4.4

Since it is triggered with shell instruction rather than user interface, I wonder will you consider it as a defect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant