diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index fc250f2692712..163f8550c0596 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -23859,7 +23859,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * on the screen. */ private boolean shouldDrawRoundScrollbar() { - if (!mResources.getConfiguration().isScreenRound()) { + if (!mResources.getConfiguration().isScreenRound() || mAttachInfo == null) { return false; }