https://kotlinlang.org logo
d

debug

08/03/2016, 10:24 AM
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?