diff options
author | John Reck <jreck@google.com> | 2011-02-02 15:34:56 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-02-02 15:34:56 -0800 |
commit | a93982d1ac21696d04775b2758e150ed43c8f651 (patch) | |
tree | d732747737e2cbe1ab47b0425471b81890a84ee3 /src/com/android/browser/widget | |
parent | b577d6ebd2e3edaffd838c4b58d882ca7018198b (diff) | |
download | packages_apps_Browser-a93982d1ac21696d04775b2758e150ed43c8f651.zip packages_apps_Browser-a93982d1ac21696d04775b2758e150ed43c8f651.tar.gz packages_apps_Browser-a93982d1ac21696d04775b2758e150ed43c8f651.tar.bz2 |
Add missing null check
Bug: 3417571
Change-Id: I7d3a016eaab53c01532f4743c1f14e57a0b8065b
Diffstat (limited to 'src/com/android/browser/widget')
-rw-r--r-- | src/com/android/browser/widget/BookmarkThumbnailWidgetService.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/browser/widget/BookmarkThumbnailWidgetService.java b/src/com/android/browser/widget/BookmarkThumbnailWidgetService.java index cc06349..e525159 100644 --- a/src/com/android/browser/widget/BookmarkThumbnailWidgetService.java +++ b/src/com/android/browser/widget/BookmarkThumbnailWidgetService.java @@ -110,9 +110,11 @@ public class BookmarkThumbnailWidgetService extends RemoteViewsService { if (ids != null) { for (int id : ids) { BookmarkFactory bf = mFactories.remove(id); - // Workaround a known framework bug - // onDestroy is currently never called - bf.onDestroy(); + if (bf != null) { + // Workaround a known framework bug + // onDestroy is currently never called + bf.onDestroy(); + } } } } else if (ACTION_CHANGE_FOLDER.equals(action)) { |