(once again sry for how this issue is presented)
# announcements
p
(once again sry for how this issue is presented)
s
Can you post a stack-trace…
1
p
Sure, I mean, the field was null so I got the crash, I have debugged it and found this specific issue, stack below :
IMG_20190903_175845.jpg
s
Yup, super-class constructor calling overridable method…. poor API design leading to hard-to-debug-issues… Glad you found it.
e
Exactly what was guessed!
put it into constant outside of the class
or in companion
s
Android’s
TextView
should not call overloadable methods in its constructor. Or
setText(....)
should be final….
e
Tell it to Android team 🙂
😁 1
p
Thanks guys I wasnt expecting such thing