commit | 0b82a6f7279254851b05425f0b5ac34849bc2ca5 | [log] [tgz] |
---|---|---|
author | Grace Kloba <klobag@google.com> | Tue Apr 20 13:46:42 2010 -0700 |
committer | Grace Kloba <klobag@google.com> | Tue Apr 20 13:46:42 2010 -0700 |
tree | b5429939ef156279039104c725195633d6ae8434 | |
parent | 54da52d4afef164ceedfaa56586e2b42f9b6c5f4 [diff] |
Now mBookmarksAdapter is created asynchronously, we need to check null before using it. Fix http://b/issue?id=2610515
diff --git a/src/com/android/browser/BrowserBookmarksPage.java b/src/com/android/browser/BrowserBookmarksPage.java index a824a84..7560c78 100644 --- a/src/com/android/browser/BrowserBookmarksPage.java +++ b/src/com/android/browser/BrowserBookmarksPage.java
@@ -679,6 +679,7 @@ * Refresh the shown list after the database has changed. */ private void refreshList() { + if (mBookmarksAdapter == null) return; mBookmarksAdapter.refreshList(); }