helloworld1 / AnyMemo

Advanced Spaced Repetition flashcard learning software for Android.
http://www.anymemo.org
GNU General Public License v2.0
151 stars 53 forks source link

NullPointerException: Unable to start FileBrowserActivity #489

Closed anlalalu closed 4 years ago

anlalalu commented 4 years ago
Reproduction Steps

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

adb shell am start -n org.liberty.android.fantastischmemo/org.liberty.android.fantastischmemo.ui.FileBrowserActivity

Stack Trace

E/AndroidRuntime( 5134): FATAL EXCEPTION: main E/AndroidRuntime( 5134): Process: org.liberty.android.fantastischmemo, PID: 5134 E/AndroidRuntime( 5134): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.liberty.android.fantastischmemo/org.liberty.android.fantastischmemo.ui.FileBrowserActivity}: java.lang.NullPointerException E/AndroidRuntime( 5134): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184) E/AndroidRuntime( 5134): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) E/AndroidRuntime( 5134): at android.app.ActivityThread.access$800(ActivityThread.java:135) E/AndroidRuntime( 5134): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) E/AndroidRuntime( 5134): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 5134): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime( 5134): at android.app.ActivityThread.main(ActivityThread.java:5001) E/AndroidRuntime( 5134): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 5134): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 5134): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) E/AndroidRuntime( 5134): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) E/AndroidRuntime( 5134): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 5134): Caused by: java.lang.NullPointerException E/AndroidRuntime( 5134): at org.liberty.android.fantastischmemo.ui.FileBrowserActivity.onCreate(FileBrowserActivity.java:43) E/AndroidRuntime( 5134): at android.app.Activity.performCreate(Activity.java:5231) E/AndroidRuntime( 5134): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) E/AndroidRuntime( 5134): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) E/AndroidRuntime( 5134): ... 11 more

Debug info

App Version = 10.11.3

Android Version = 7.1.0

helloworld1 commented 4 years ago

FileBrowserActivity is not intended to open without argument.