Closed Bug 891098 Opened 12 years ago Closed 12 years ago

Make the LoadThumbnailsTask static

Categories

(Firefox for Android Graveyard :: Theme and Visual Design, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 26

People

(Reporter: sriram, Assigned: sriram)

References

Details

(Whiteboard: fixed-fig)

Attachments

(1 file)

LoadThumbnailsTask is accessing mTopBookmarks, that could be null when it gets detached from the window. This could cause an NPE. Make LoadThumbnailsTask to be independent of mTopBookmarks.
Attached patch PatchSplinter Review
Done.
Attachment #772311 - Flags: review?(bnicholson)
Blocks: 889612
Comment on attachment 772311 [details] [diff] [review] Patch Review of attachment 772311 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/base/home/BookmarksPage.java @@ +328,5 @@ > } > > @Override > public void onPostExecute(Map<String, Thumbnail> thumbnails) { > + if (mView.getHandler() != null) { Please add a comment about this check (perhaps copy the one from https://hg.mozilla.org/projects/fig/file/tip/mobile/android/base/animation/PropertyAnimator.java#l208).
Attachment #772311 - Flags: review?(bnicholson) → review+
Assignee: nobody → sriram
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: