```override fun setTextColor(colors: ColorStateLis...
# android
d
Copy code
override fun setTextColor(colors: ColorStateList?) {
        super.setTextColor(colors)
        span.setFillColor(currentTextColor)
    }
Just overriding the
setTextColor()
. Could it be that the super class constructor invokes this method and a
NullPointerException
occurs?