ToDont icon indicating copy to clipboard operation
ToDont copied to clipboard

Crash after click on symbol

Open stop5 opened this issue 3 years ago • 3 comments

:writing_hand: Describe the bug

The app crashes when clicking the symbol left to an habit

:bomb: Steps to reproduce

  1. Create a new bad habit with the +
  2. Try to click on one of the symbols at the left side of the habit
  3. 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

stop5 avatar Apr 29 '21 23:04 stop5

Thanks for reporting the bug, @stop5. I could reproduce it on another device running Android 11. May you please have a look, @arafaatqureshi?

CrazyMarvin avatar May 01 '21 21:05 CrazyMarvin

Sure @CrazyMarvin . Thanks @stop5 , will check where the problem is, and will update it.

arafaatqureshi avatar May 02 '21 18:05 arafaatqureshi

This bug should be fixed by now. May you please confirm, @stop5?

CrazyMarvin avatar Dec 30 '21 22:12 CrazyMarvin

I tried again and could not reproduce this bug anymore so I am closing this issue.

CrazyMarvin avatar Oct 04 '22 22:10 CrazyMarvin