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

Stack Overflow | jyelle | 3 months ago
  1. 0

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

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

    Use Handler.post() to update ListView

    Stack Overflow | 5 months ago | Paul Yang
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable)' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    setColorFilter throws NP exception

    GitHub | 2 years ago | cnordvik
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable()' on a null object reference
  5. 0

    GitHub comment 93#127844857

    GitHub | 1 year ago | NoelChew
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable()' on a null object reference

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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