Closed Bug 774306 Opened 12 years ago Closed 12 years ago

java.lang.NullPointerException: at org.mozilla.gecko.AboutHomeContent$10.run(AboutHomeContent.java)

Categories

(Firefox for Android Graveyard :: General, defect)

14 Branch
ARM
Android
defect
Not set
critical

Tracking

(firefox16 fixed)

RESOLVED FIXED
Firefox 17
Tracking Status
firefox16 --- fixed

People

(Reporter: scoobidiver, Assigned: lucasr)

Details

(Keywords: crash, Whiteboard: [native-crash])

Crash Data

Attachments

(1 file)

There are 74 crashes in 14.0 Betas and one crash in 15.0a2: bp-0180c867-33e1-48cc-a429-8dc7c2120714.

java.lang.NullPointerException
	at org.mozilla.gecko.AboutHomeContent$10.run(AboutHomeContent.java:480)
	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:4575)
	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:789)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
	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%2410.run%28AboutHomeContent.java%29
It looks like mFavicons might not be initialized when we try to use it here:
http://hg.mozilla.org/releases/mozilla-aurora/annotate/tip/mobile/android/base/AboutHomeContent.java#l479

mFavicons is initialized in the delayed initialize() method:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoApp.java#1888
Assignee: nobody → lucasr.at.mozilla
Attachment #642930 - Flags: review?(margaret.leibovic)
Comment on attachment 642930 [details] [diff] [review]
Protect access to mFavicons behind a getter

Nice.
Attachment #642930 - Flags: review?(margaret.leibovic) → review+
https://hg.mozilla.org/mozilla-central/rev/10a4ccffa7a4
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
Comment on attachment 642930 [details] [diff] [review]
Protect access to mFavicons behind a getter

[Approval Request Comment]
Need this patch in aurora in order to land the fix for bug 774306. This patch fixes a crash. Indirect dependence for Reader Mode which is in the Firefox 16 roadmap.
Attachment #642930 - Flags: approval-mozilla-aurora?
(In reply to Lucas Rocha (:lucasr) from comment #6)
> [Approval Request Comment]
> Need this patch in aurora in order to land the fix for bug 774306.

Did you mean to suggest that there would be a followup for this patch once landed? Or is that the wrong bug #?
(In reply to Alex Keybl [:akeybl] from comment #7)
> (In reply to Lucas Rocha (:lucasr) from comment #6)
> > [Approval Request Comment]
> > Need this patch in aurora in order to land the fix for bug 774306.
> 
> Did you mean to suggest that there would be a followup for this patch once
> landed? Or is that the wrong bug #?

Sorry, I should have been more clear. I tried to land my patch for bug 774306 (reader fix) but it depends on the fix for this bug. So, I need to land the fix for this bug in Aurora to be able to land the fix for bug 774306.
(In reply to Lucas Rocha (:lucasr) from comment #8)
> (In reply to Alex Keybl [:akeybl] from comment #7)
> > (In reply to Lucas Rocha (:lucasr) from comment #6)
> > > [Approval Request Comment]
> > > Need this patch in aurora in order to land the fix for bug 774306.
> > 
> > Did you mean to suggest that there would be a followup for this patch once
> > landed? Or is that the wrong bug #?
> 
> Sorry, I should have been more clear. I tried to land my patch for bug
> 774306 (reader fix) but it depends on the fix for this bug. So, I need to
> land the fix for this bug in Aurora to be able to land the fix for bug
> 774306.

Lucas - are you intending to link to another bug?  You're referencing _this_ bug :)
(In reply to Lukas Blakk [:lsblakk] from comment #9)
> (In reply to Lucas Rocha (:lucasr) from comment #8)
> > (In reply to Alex Keybl [:akeybl] from comment #7)
> > > (In reply to Lucas Rocha (:lucasr) from comment #6)
> > > > [Approval Request Comment]
> > > > Need this patch in aurora in order to land the fix for bug 774306.
> > > 
> > > Did you mean to suggest that there would be a followup for this patch once
> > > landed? Or is that the wrong bug #?
> > 
> > Sorry, I should have been more clear. I tried to land my patch for bug
> > 774306 (reader fix) but it depends on the fix for this bug. So, I need to
> > land the fix for this bug in Aurora to be able to land the fix for bug
> > 774306.
> 
> Lucas - are you intending to link to another bug?  You're referencing _this_
> bug :)

Oops, I meant bug 767738 :-)
Comment on attachment 642930 [details] [diff] [review]
Protect access to mFavicons behind a getter

Thanks for clearing that up, approving.
Attachment #642930 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
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: