NullPointerException @ getProfileDir(GeckoApp.java:705) on startup (thrown but caught)

RESOLVED FIXED

Status

()

Firefox for Android
General
P3
normal
RESOLVED FIXED
6 years ago
11 months ago

People

(Reporter: cpeterson, Assigned: cpeterson)

Tracking

unspecified
ARM
Android
Points:
---

Firefox Tracking Flags

(firefox11 fixed, fennec11+)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Fennec throws the following NullPointerException on startup because 

12-01 13:09:40.415: I/GeckoAddons(6017): error reading json file
12-01 13:09:40.415: I/GeckoAddons(6017): java.lang.NullPointerException
12-01 13:09:40.415: I/GeckoAddons(6017): 	at org.mozilla.gecko.GeckoApp.getProfileDir(GeckoApp.java:705)
12-01 13:09:40.415: I/GeckoAddons(6017): 	at org.mozilla.gecko.AboutHomeContent.getProfileRecommendedAddonsStream(AboutHomeContent.java:157)
12-01 13:09:40.415: I/GeckoAddons(6017): 	at org.mozilla.gecko.AboutHomeContent.getRecommendedAddonsStream(AboutHomeContent.java:171)
12-01 13:09:40.415: I/GeckoAddons(6017): 	at org.mozilla.gecko.AboutHomeContent$4.run(AboutHomeContent.java:185)
12-01 13:09:40.415: I/GeckoAddons(6017): 	at android.os.Handler.handleCallback(Handler.java:587)
12-01 13:09:40.415: I/GeckoAddons(6017): 	at android.os.Handler.dispatchMessage(Handler.java:92)
12-01 13:09:40.415: I/GeckoAddons(6017): 	at android.os.Looper.loop(Looper.java:130)
12-01 13:09:40.415: I/GeckoAddons(6017): 	at org.mozilla.gecko.GeckoAppShell$LooperThread.run(GeckoAppShell.java:153)

This code was added by changeset:

changeset:   81469:66f5729d323c
user:        Brad Lassey <blassey@mozilla.com>
date:        Wed Nov 30 21:28:05 2011 -0500
files:       mobile/android/base/GeckoApp.java mobile/android/base/GeckoAppShell.java
description:
bug 706393 - Add API to GeckoApp to get profile dir r=mfinkle
(Assignee)

Comment 1

6 years ago
Note that the NullPointerException is caught and does not crash the app.
Summary: NullPointerException at getProfileDir(GeckoApp.java:705) on startup → NullPointerException @ getProfileDir(GeckoApp.java:705) on startup (thrown but caught)

Updated

6 years ago
Severity: normal → critical
Keywords: crash
OS: Mac OS X → Android
Hardware: x86 → ARM
Whiteboard: [native-crash]
Woops disregard above
Severity: critical → normal
Keywords: crash
Whiteboard: [native-crash]

Updated

6 years ago
Duplicate of this bug: 707519
Assignee: nobody → blassey.bugs
Assignee: blassey.bugs → cpeterson
Priority: -- → P3
(Assignee)

Updated

6 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 4

6 years ago
Created attachment 580585 [details] [diff] [review]
check-profile-directory.patch

Check whether the profile directory exists before enumerating its contents. The profile directory may have been deleted or not created yet.
Attachment #580585 - Flags: review?(doug.turner)

Updated

6 years ago
Attachment #580585 - Flags: review?(doug.turner) → review+
Duplicate of this bug: 709520
https://hg.mozilla.org/mozilla-central/rev/71dfb2adaf0f
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
tracking-fennec: --- → 11+
status-firefox11: --- → fixed
You need to log in before you can comment on or make changes to this bug.