Closed Bug 777652 Opened 10 years ago Closed 10 years ago

java.lang.NullPointerException: at org.mozilla.gecko.GeckoPreferences.onConfigurationChanged(GeckoPreferences.java)

Categories

(Firefox for Android Graveyard :: General, defect)

17 Branch
ARM
Android
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: scoobidiver, Assigned: mcomella)

References

Details

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

Crash Data

There's one crash in 17.0a1/20120724: bp-8c119e56-1e35-4d24-a41c-e83d62120726.

java.lang.NullPointerException
	at org.mozilla.gecko.GeckoPreferences.onConfigurationChanged(GeckoPreferences.java:68)
	at android.app.ActivityThread.performConfigurationChanged(ActivityThread.java:3584)
	at android.app.ActivityThread.handleConfigurationChanged(ActivityThread.java:3736)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1230)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	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.GeckoPreferences.onConfigurationChanged%28GeckoPreferences.java%29
Regression from bug 715179.
Assignee: nobody → michael.l.comella
Blocks: 715179
Status: NEW → ASSIGNED
Keywords: regression
See the previous regression, bug 776369, which may be related.
See Also: → 776369
Line 68: final FontSizePreference fontSizePref = (FontSizePreference) mPreferenceScreen.findPreference(FONT_SIZE_PREF_KEY);

mPreferenceScreen must be null. It's value is set in onWindowFocusChanged() which means onConfigurationChanged() (where line 68 is) must be called before onWindowFocusChanged() for this error to occur. I don't know how to repo this though.
Version: Trunk → Firefox 17
I have been unable to repo and this crash has only been reported once, on Aug. 1 (approximately three weeks ago). As such I am marking this WFM.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.