OSDN Git Service

Now mBookmarksAdapter is created asynchronously,
authorGrace Kloba <klobag@google.com>
Tue, 20 Apr 2010 20:46:42 +0000 (13:46 -0700)
committerGrace Kloba <klobag@google.com>
Tue, 20 Apr 2010 20:46:42 +0000 (13:46 -0700)
we need to check null before using it.

Fix http://b/issue?id=2610515

src/com/android/browser/BrowserBookmarksPage.java

index a824a84..7560c78 100644 (file)
@@ -679,6 +679,7 @@ public class BrowserBookmarksPage extends Activity implements
      *  Refresh the shown list after the database has changed.
      */
     private void refreshList() {
+        if (mBookmarksAdapter == null) return;
         mBookmarksAdapter.refreshList();
     }