ToDont
ToDont copied to clipboard
Crash after click on symbol
:writing_hand: Describe the bug
The app crashes when clicking the symbol left to an habit
:bomb: Steps to reproduce
- Create a new bad habit with the +
- Try to click on one of the symbols at the left side of the habit
- App crashed
:iphone: Tech info
- Device: oneplus 7 pro
- OS: Android 11 (Lineageos 18.1)
- Version: 1.0, 1.1 from fdroid
:page_facing_up: Additional context
Stack Trace: FATAL EXCEPTION: main Process: rocks.poopjournal.todont, PID: 9668 java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setBackground(android.graphics.drawable.Drawable)' on a null object reference at rocks.poopjournal.todont.Adapters.HabitsAdapter$2.onClick(HabitsAdapter.java:166) at android.view.View.performClick(View.java:7448) at android.view.View.performClickInternal(View.java:7425) at android.view.View.access$3600(View.java:810) at android.view.View$PerformClick.run(View.java:28305) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7660) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Edit log: 30.05.21 tested it with 1.1
Thanks for reporting the bug, @stop5. I could reproduce it on another device running Android 11. May you please have a look, @arafaatqureshi?
Sure @CrazyMarvin . Thanks @stop5 , will check where the problem is, and will update it.
This bug should be fixed by now. May you please confirm, @stop5?
I tried again and could not reproduce this bug anymore so I am closing this issue.