java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable[] android.widget.TextView.getCompoundDrawables()' on a null object reference

Stack Overflow | jyelle | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Trouble upgrading to new com.android.support:support-v4:24.2.0 library

    Stack Overflow | 7 months ago | jyelle
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable[] android.widget.TextView.getCompoundDrawables()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'android.graphics.drawable.Drawable[] android.widget.TextView.getCompoundDrawables()' on a null object reference

      at android.support.v4.widget.TextViewCompat.getCompoundDrawablesRelative()
    2. Android Support v4
      TextViewCompat.getCompoundDrawablesRelative
      1. android.support.v4.widget.TextViewCompat.getCompoundDrawablesRelative(TextViewCompat.java:285)
      1 frame