Skip to content

NullPointerException: Unable to resume activity #48

Description

@anlalalu
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions