Closed Bug 763167 Opened 12 years ago Closed 12 years ago

java.lang.NullPointerException: at org.mozilla.gecko.BrowserToolbar$2.onCreateContextMenu(BrowserToolbar.java)

Categories

(Firefox for Android Graveyard :: General, defect)

15 Branch
ARM
Android
defect
Not set
critical

Tracking

(firefox15 fixed, firefox16 verified)

VERIFIED FIXED
Firefox 16
Tracking Status
firefox15 --- fixed
firefox16 --- verified

People

(Reporter: scoobidiver, Assigned: wesj)

References

Details

(4 keywords, Whiteboard: [native-crash], STR in comment #2)

Crash Data

Attachments

(1 file)

It first appeared in 16.0a1/20120608081921 and has been hit by 3 different users. The regression range is:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=7e4c2abb9fc9&tochange=22bb7d46bb23
It's likely a regression from bug 722591.

Here is a crash report: bp-aa6a4d0f-d9b0-484c-a3d4-2f7302120609.

java.lang.NullPointerException
	at org.mozilla.gecko.BrowserToolbar$2.onCreateContextMenu(BrowserToolbar.java:119)
	at android.view.View.createContextMenu(View.java:6322)
	at com.android.internal.view.menu.ContextMenuBuilder.show(ContextMenuBuilder.java:81)
	at com.android.internal.policy.impl.PhoneWindow$DecorView.showContextMenuForChild(PhoneWindow.java:2308)
	at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564)
	at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564)
	at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564)
	at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564)
	at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564)
	at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564)
	at android.view.View.showContextMenu(View.java:3661)
	at android.view.View.performLongClick(View.java:3630)
	at android.widget.TextView.performLongClick(TextView.java:9532)
	at android.view.View$CheckForLongPress.run(View.java:14241)
	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:4507)
	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:790)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
	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.BrowserToolbar%242.onCreateContextMenu%28BrowserToolbar.java%29
tracking-fennec: --- → ?
Keywords: topcrash
Steps to Reproduce:

1. Tap and hold on the URL bar
I was able to reproduce it on the latest Nightly:
https://crash-stats.mozilla.com/report/index/bp-bee5b623-d1f7-4a64-a611-dc8052120611

--
Firefox 16.0a1 (2012-06-10)
Device: Galaxy Nexus
OS: Android 4.0.2
Keywords: reproducible
Assignee: nobody → wjohnston
Whiteboard: [native-crash] → [native-crash], STR in comment #2
Attached patch PatchSplinter Review
From one of the other bugs....
Attachment #631961 - Flags: review?(mark.finkle)
Comment on attachment 631961 [details] [diff] [review]
Patch

Looks OK, but Sriram should review to make sure we don't need something for other devices.
Attachment #631961 - Flags: review?(sriram)
Attachment #631961 - Flags: review?(mark.finkle)
Attachment #631961 - Flags: review+
Comment on attachment 631961 [details] [diff] [review]
Patch

Review of attachment 631961 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good for me.
menu-v11/ is enough, as that will take care of custom menu inflater in Honeycomb and ICS.
Attachment #631961 - Flags: review?(sriram) → review+
https://hg.mozilla.org/mozilla-central/rev/07834b62c17c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 16
Status: RESOLVED → VERIFIED
tracking-fennec: ? → ---
Comment on attachment 631961 [details] [diff] [review]
Patch

Forgot to request this follow up when pushing the original patch in bug 722591.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 722591
User impact if declined: Crashy
Testing completed (on m-c, etc.): Been on mc for a long time
Risk to taking this patch (and alternatives if risky): Low
String or UUID changes made by this patch: None
Attachment #631961 - Flags: approval-mozilla-aurora?
I just hit this in my first 40 seconds of use of Fennec *ever* (though yes I am using aurora). So nominating for tracking. Its bad UX (imo) for any crasher that is easy to trigger and happens in the first few minutes after first-run.
tracking-fennec: --- → ?
Version: Firefox 16 → Firefox 15
Attachment #631961 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
tracking-fennec: ? → ---
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: