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

Stack Overflow | jyelle | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 6 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