The app crashes after logging into the "Write Notes" page and trying to return to the dashboard page using the back icon.
ahyar92 opened this issue · 0 comments
ahyar92 commented
Expected behavior
when I go to the "Write a note" page and want to return to the dashboard page using the back icon, the app does not cause crashes.
Actual behavior
At first I tried to go to the "Write a note" page and make a note, but when I went back to the dashboard without storing the record using the back icon
, the application suddenly crashed.
How to reproduce
- Install and open the app
- Next click
Pencil Icon
to write the note - Once you are on the
Write Notes
page, clickback icon
to return to the dashboard page. Then you will find the crash as I experienced.
Environment
Tested on with devices:
Device | Android Version |
---|---|
Xiaomi Redmi Note 5A | Nougat, 7.1.2 N2G47H (RAM : 2 GB) |
Application Version: 3.1.3
Recording Of The Bug
https://www.youtube.com/watch?v=n6kveH8dqug&feature=youtu.be
Logcat
06-02 02:18:34.714 6482 6482 E AndroidRuntime: FATAL EXCEPTION: main
06-02 02:18:34.714 6482 6482 E AndroidRuntime: Process: org.kore.kolabnotes.android, PID: 6482
06-02 02:18:34.714 6482 6482 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String jp.wasabeef.richeditor.RichEditor.getHtml()' on a null object reference
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at org.kore.kolabnotes.android.fragment.DetailFragment.onBackPressed(DetailFragment.java:1493)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at org.kore.kolabnotes.android.fragment.DetailFragment$1.onClick(DetailFragment.java:200)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at android.view.View.performClick(View.java:5647)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:22462)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:754)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at android.os.Looper.loop(Looper.java:163)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6361)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
06-02 02:18:34.714 6482 6482 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)