commit | 9c867a5703e36f47ec0f6b52fd1dc8b7d3110802 | [log] [tgz] |
---|---|---|
author | Jason Monk <jmonk@google.com> | Tue Mar 22 16:38:44 2016 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Mar 22 16:38:44 2016 +0000 |
tree | e3c0d0fb1d5958d85c253ea93e48811e29c93541 | |
parent | 829d5173d881fb02289aab3e3024e2c0c98650ab [diff] | |
parent | decc767f26c7e5229d536b9997f92b0e9c69bc1c [diff] |
Merge "Guard against monkey crash." into nyc-dev
diff --git a/src/com/android/settings/dashboard/DashboardSummary.java b/src/com/android/settings/dashboard/DashboardSummary.java index 448a77d..c111992 100644 --- a/src/com/android/settings/dashboard/DashboardSummary.java +++ b/src/com/android/settings/dashboard/DashboardSummary.java
@@ -139,6 +139,7 @@ @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); + if (mLayoutManager == null) return; outState.putInt(EXTRA_SCROLL_POSITION, mLayoutManager.findFirstVisibleItemPosition()); }