Closed Bug 776369 Opened 12 years ago Closed 12 years ago

java.lang.NullPointerException: at org.mozilla.gecko.FontSizePreference.setPreviewFontViewWidth(FontSizePreference.java)

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
critical

Tracking

(firefox16 unaffected, firefox17 fixed)

RESOLVED FIXED
Firefox 17
Tracking Status
firefox16 --- unaffected
firefox17 --- fixed

People

(Reporter: scoobidiver, Assigned: mcomella)

References

Details

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

Crash Data

Attachments

(1 file)

There's one crash in 17.0a1/20120722: bp-885ad9fc-7e17-46d3-a24d-f365a2120722.
It might be a regression from bug 715179.

java.lang.NullPointerException
	at org.mozilla.gecko.FontSizePreference.setPreviewFontViewWidth(FontSizePreference.java:202)
	at org.mozilla.gecko.FontSizePreference.onConfigurationChanged(FontSizePreference.java:140)
	at org.mozilla.gecko.GeckoPreferences.onConfigurationChanged(GeckoPreferences.java:70)
	at android.app.ActivityThread.performConfigurationChanged(ActivityThread.java:3062)
	at android.app.ActivityThread.handleConfigurationChanged(ActivityThread.java:3186)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1012)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:130)
	at android.app.ActivityThread.main(ActivityThread.java:3835)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:507)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
	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.FontSizePreference.setPreviewFontViewWidth%28FontSizePreference.java%29
Definitely a regression from bug 715179.
Assignee: nobody → michael.l.comella
Blocks: 715179
Keywords: regression
Attached patch PatchSplinter Review
Bug can be repo'd by changing device orientation in the Preferences menu before opening the FontSizePreference dialog.

The fix is to make sure the dialog has been opened first (by making sure its main component is initialized) before calling the associated code to modify the dialog on rotation change.
Attachment #645032 - Flags: review?(bnicholson)
Attachment #645032 - Flags: review?(bnicholson) → review+
https://hg.mozilla.org/mozilla-central/rev/5d5e27214a62
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
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: