diff --git a/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java b/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java index 9239dedc11237..26da551e8222a 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java +++ b/packages/SystemUI/src/com/android/systemui/qs/PageIndicator.java @@ -122,6 +122,7 @@ public class PageIndicator extends ViewGroup { ImageView second = (ImageView) getChildAt(secondIndex); if (first == null || second == null) { // may happen during reInflation or other weird cases + return; } // Lay the two views on top of each other. second.setTranslationX(first.getX() - second.getX());