java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageDrawable(android.graphics.drawable.Drawable)' on a null object reference

JIRA | Deepak | 1 year 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.

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void android.widget.ImageView.setImageDrawable(android.graphics.drawable.Drawable)' on a null object reference

      at android.widget.ImageSwitcher.setImageDrawable()
    2. Android Platform
      ImageSwitcher.setImageDrawable
      1. android.widget.ImageSwitcher.setImageDrawable(ImageSwitcher.java:55)
      1 frame
    3. com.android.systemui
      BaseStatusBar$5$2.run
      1. com.android.systemui.statusbar.phone.Ticker.addEntry(Ticker.java:222)
      2. com.android.systemui.statusbar.phone.PhoneStatusBar.tick(PhoneStatusBar.java:3385)
      3. com.android.systemui.statusbar.phone.PhoneStatusBar.addNotification(PhoneStatusBar.java:1743)
      4. com.android.systemui.statusbar.BaseStatusBar$5$2.run(BaseStatusBar.java:471)
      4 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:135)
      4. android.app.ActivityThread.main(ActivityThread.java:5292)
      4 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
      2 frames