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 start TextEditorActivity #1808

Closed
anlalalu opened this issue Jan 5, 2020 · 1 comment · Fixed by #1810
Closed

NullPointerException: Unable to start TextEditorActivity #1808

anlalalu opened this issue Jan 5, 2020 · 1 comment · Fixed by #1810
Assignees
Labels
Area-TextEditor Related to built-in text editor. Issue-Bug Related unexpected behavior or something worth investigating.

Comments

@anlalalu
Copy link

anlalalu commented Jan 5, 2020

Reproduction Steps

This crash is triggered with this shell instruction:

adb shell am start -n com.amaze.filemanager/com.amaze.filemanager.activities.TextEditorActivity

Stack Trace

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

Debug info

App Version = 3.3.2

Android Version = 7.1.0

@TranceLove TranceLove added this to To do in Current work Jan 6, 2020
@TranceLove TranceLove added Area-TextEditor Related to built-in text editor. Issue-Bug Related unexpected behavior or something worth investigating. labels Jan 7, 2020
@TranceLove
Copy link
Collaborator

Confirmed symptom on Oneplus 2 running Slim7 (7.1.2).

Reason for crash was TextEditorActivity expects URI in Intent's data. Either plug the leak, or add functions to allow TextEditorActivity to open specified file (e.g. via open file dialog).

@TranceLove TranceLove self-assigned this Jan 7, 2020
TranceLove added a commit to TranceLove/AmazeFileManager that referenced this issue Jan 7, 2020
@TranceLove TranceLove moved this from To do to Pending approval in Current work Jan 7, 2020
@TranceLove TranceLove moved this from Pending approval to In progress in Current work Jan 8, 2020
Current work automation moved this from In progress to Done Jan 21, 2020
bowiechen pushed a commit that referenced this issue Jan 21, 2020
EmmanuelMess pushed a commit that referenced this issue Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TextEditor Related to built-in text editor. Issue-Bug Related unexpected behavior or something worth investigating.
Projects
Current work
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants