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

RESOLVED FIXED in Firefox 16

Status

()

Firefox for Android
General
--
critical
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Scoobidiver (away), Assigned: lucasr)

Tracking

({crash})

14 Branch
Firefox 17
ARM
Android
crash
Points:
---

Firefox Tracking Flags

(firefox16 fixed)

Details

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

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
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

Comment 1

5 years ago
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)

Updated

5 years ago
Assignee: nobody → lucasr.at.mozilla
(Assignee)

Comment 2

5 years ago
Created attachment 642930 [details] [diff] [review]
Protect access to mFavicons behind a getter
Attachment #642930 - Flags: review?(margaret.leibovic)

Comment 3

5 years ago
Comment on attachment 642930 [details] [diff] [review]
Protect access to mFavicons behind a getter

Nice.
Attachment #642930 - Flags: review?(margaret.leibovic) → review+
(Assignee)

Comment 4

5 years ago
Pushed: http://hg.mozilla.org/integration/mozilla-inbound/rev/10a4ccffa7a4

Comment 5

5 years ago
https://hg.mozilla.org/mozilla-central/rev/10a4ccffa7a4
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
(Assignee)

Comment 6

5 years ago
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?

Comment 7

5 years ago
(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 #?
(Assignee)

Comment 8

5 years ago
(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 :)
(Assignee)

Comment 10

5 years ago
(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+
(Assignee)

Comment 12

5 years ago
Pushed to aurora: https://hg.mozilla.org/releases/mozilla-aurora/rev/a13e10835394
(Reporter)

Updated

5 years ago
status-firefox16: --- → fixed
You need to log in before you can comment on or make changes to this bug.