diff options
author | John Reck <jreck@google.com> | 2011-07-11 17:09:29 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-11 17:09:29 -0700 |
commit | c41b6dab84e318722d6949775303eb6edb0fee4d (patch) | |
tree | 10adb9bf979811dc5f9bd525e5c1a40ecb3d18c5 /src | |
parent | df15e1225d099641aefc284c28cebd5e18fe11eb (diff) | |
parent | 24bdcb98d296f1b31e83379db27d978b90534fef (diff) | |
download | packages_apps_Browser-c41b6dab84e318722d6949775303eb6edb0fee4d.zip packages_apps_Browser-c41b6dab84e318722d6949775303eb6edb0fee4d.tar.gz packages_apps_Browser-c41b6dab84e318722d6949775303eb6edb0fee4d.tar.bz2 |
Merge "Null check"
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/browser/BrowserSnapshotPage.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserSnapshotPage.java b/src/com/android/browser/BrowserSnapshotPage.java index 72da15b..44c419e 100644 --- a/src/com/android/browser/BrowserSnapshotPage.java +++ b/src/com/android/browser/BrowserSnapshotPage.java @@ -98,8 +98,10 @@ public class BrowserSnapshotPage extends Fragment implements public void onDestroyView() { super.onDestroyView(); getLoaderManager().destroyLoader(LOADER_SNAPSHOTS); - mAdapter.changeCursor(null); - mAdapter = null; + if (mAdapter != null) { + mAdapter.changeCursor(null); + mAdapter = null; + } } void setupGrid(LayoutInflater inflater) { |