Closed
Bug 1138760
Opened 10 years ago
Closed 8 years ago
crash in java.lang.NullPointerException: at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java)
Categories
(Firefox for Android Graveyard :: Search Activity, defect)
Tracking
(firefox36 affected, firefox37 affected, firefox38 affected, firefox39 affected, firefox47 affected)
People
(Reporter: kbrosnan, Unassigned)
Details
(Keywords: crash)
Crash Data
This bug was filed from the Socorro interface and is
report bp-726f6764-53ed-472f-8b2c-b94762150224.
=============================================================
https://crash-stats.mozilla.com/report/list?signature=java.lang.NullPointerException%3A+at+org.mozilla.gecko.GeckoSharedPrefs.forApp%28GeckoSharedPrefs.java%29&product=FennecAndroid&query_type=contains
java.lang.NullPointerException
at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java:86)
at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java:74)
at org.mozilla.search.providers.SearchEngineManager$2.run(SearchEngineManager.java:148)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at org.mozilla.gecko.util.GeckoBackgroundThread.run(GeckoBackgroundThread.java:43)
Updated•10 years ago
|
Crash Signature: [@ java.lang.NullPointerException: at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java)] → [@ java.lang.NullPointerException: at org.mozilla.gecko.GeckoSharedPrefs.forApp(GeckoSharedPrefs.java)]
[@ java.lang.NullPointerException: at org.mozilla.gecko.GeckoSharedPrefs.forApp]
Comment 1•9 years ago
|
||
Looking at this briefly, it seems like we're passing in a null context here:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/search/java/org/mozilla/search/providers/SearchEngineManager.java#200
Comment 2•9 years ago
|
||
I wonder if the SearchEngineManager has been destroyed before the Distribution callback is fired. The onDestroy method sets the distribution, context and other stuff to null. I suppose we could check for a null distribution or context in the main callback methods, with distributionNotFound seems to be the most common entry point for this crash.
| Comment hidden (typo) |
Nevermind comment 3 – they're not listeners.
To be explicit, I'm too unfamiliar with this code and I have other things to do so I'm going to stop diving in now.
Comment 5•9 years ago
|
||
¡Hola!
This just bite me so dropping the crash report here FWIW...
https://crash-stats.mozilla.com/report/index/bp-63de74a2-eecc-4865-af8e-89bcb2160210
¡Gracias!
status-firefox47:
--- → affected
Comment 6•9 years ago
|
||
Hey Alex! Thanks for the report. Do you remember what you were doing when you hit this crash? It looks like this is happening in the search activity.
Component: General → Search Activity
Flags: needinfo?(alex_mayorga)
Comment 7•9 years ago
|
||
¡Hola Margaret!
The steps as far as I recall involved a long press on the center (circle) button on the main screen of an Amazon Fire, this pops up a white on orange magnifying glass, moving the finger to this icon results in the crash.
I can try to confirm these steps later today if you want me to.
¡Gracias!
Alex
Flags: needinfo?(alex_mayorga)
Comment 8•8 years ago
|
||
This is an ex-Search Activity now (bug 1221344).
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Updated•7 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•