We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 75e91f7 + 0283a55 commit 1bf4d5fCopy full SHA for 1bf4d5f
core/java/android/widget/AbsSeekBar.java
@@ -123,7 +123,7 @@ public void setThumb(Drawable thumb) {
123
invalidate();
124
if (needUpdate) {
125
updateThumbPos(getWidth(), getHeight());
126
- if (thumb.isStateful()) {
+ if (thumb != null && thumb.isStateful()) {
127
// Note that if the states are different this won't work.
128
// For now, let's consider that an app bug.
129
int[] state = getDrawableState();
0 commit comments