Closed Bug 808296 Opened 12 years ago Closed 12 years ago

java.lang.NullPointerException: at org.mozilla.gecko.AboutHomeContent.updateTopSitesThumbnails(AboutHomeContent.java)

Categories

(Firefox for Android Graveyard :: General, defect)

19 Branch
ARM
Android
defect
Not set
critical

Tracking

(firefox18 unaffected, firefox19 fixed)

RESOLVED FIXED
Firefox 19
Tracking Status
firefox18 --- unaffected
firefox19 --- fixed

People

(Reporter: scoobidiver, Assigned: lucasr)

References

Details

(4 keywords, Whiteboard: [native-crash])

Crash Data

Attachments

(1 file)

There's one crash in 19.0a1/20121103: bp-213e81d6-e19c-438f-8a42-25ee42121103.
It might be a regression from bug 785945.

java.lang.NullPointerException
	at org.mozilla.gecko.AboutHomeContent.updateTopSitesThumbnails(AboutHomeContent.java:335)
	at org.mozilla.gecko.AboutHomeContent.access$500(AboutHomeContent.java:72)
	at org.mozilla.gecko.AboutHomeContent$8.onPostExecute(AboutHomeContent.java:383)
	at org.mozilla.gecko.AboutHomeContent$8.onPostExecute(AboutHomeContent.java:375)
	at org.mozilla.gecko.util.GeckoAsyncTask$BackgroundTaskRunnable$1.run(GeckoAsyncTask.java:37)
	at android.os.Handler.handleCallback(Handler.java:605)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:4424)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
	at dalvik.system.NativeStart.main(Native Method)

More reports at:
https://crash-stats.mozilla.com/report/list?signature=java.lang.NullPointerException%3A+at+org.mozilla.gecko.AboutHomeContent.updateTopSitesThumbnails%28AboutHomeContent.java%29
Assignee: nobody → lucasr.at.mozilla
Need steps to reproduce this.
Keywords: steps-wanted
Crash Signature: [@ java.lang.NullPointerException: at org.mozilla.gecko.AboutHomeContent.updateTopSitesThumbnails(AboutHomeContent.java)] → [@ java.lang.NullPointerException: at org.mozilla.gecko.AboutHomeContent.updateTopSitesThumbnails(AboutHomeContent.java)] [@ android.database.CursorIndexOutOfBoundsException: Index 2 requested with a size of 2 at android.database.AbstractCursor.checkPosi…
Comment on attachment 678686 [details] [diff] [review]
Update top sites thumbnails from adapter, not from gridview

This does seem more correct. When the grid is out of sync, do we still update the child view at some point? The patch will just continue to the next thumbnail.
Attachment #678686 - Flags: review?(mark.finkle) → review+
It's #1 top crasher in 19.0a1.
tracking-fennec: --- → ?
Keywords: regression, topcrash
Version: Trunk → Firefox 19
My patch probably fixes this bug. However, given that I couldn't reproduce this locally, I'm not entirely sure it won't cause any side effects due to unexpected races between the adapter and the grid view. It works fine on my devices so I still think my patch is our best bet for now though. Pushing to see how it goes.

Pushed: https://hg.mozilla.org/integration/mozilla-inbound/rev/edc00669b8e1
This is easily reproducible for me if I do Clear Private Data in the Android settings. If there's at least one top site with a screenshot thumbnail on about:home, it will crash.
https://hg.mozilla.org/mozilla-central/rev/edc00669b8e1
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
tracking-fennec: ? → ---
Crash Signature: [@ java.lang.NullPointerException: at org.mozilla.gecko.AboutHomeContent.updateTopSitesThumbnails(AboutHomeContent.java)] [@ android.database.CursorIndexOutOfBoundsException: Index 2 requested with a size of 2 at android.database.AbstractCursor.checkPosi… → [@ java.lang.NullPointerException: at org.mozilla.gecko.AboutHomeContent.updateTopSitesThumbnails(AboutHomeContent.java)] [@ android.database.CursorIndexOutOfBoundsException: Index 1 requested with a size of 1 at android.database.AbstractCursor.checkPosi…
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: