Crash when launching the camera from the gallery app

RESOLVED FIXED

Status

RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: fabrice, Assigned: fabrice)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
STR:
- open the gallery app.
- hit the "camera" icon

Expected:
- we launch the camera

Observed:
- crash:

E/GeckoCrashHandler(30860): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 3868 ("Gecko")
E/GeckoCrashHandler(30860): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.mozilla.gecko.util.WebActivityMapper$WebActivityMapping.getAction()' on a null object reference
E/GeckoCrashHandler(30860): 	at org.mozilla.gecko.util.WebActivityMapper.getIntentForWebActivity(WebActivityMapper.java:72)
E/GeckoCrashHandler(30860): 	at org.mozilla.gecko.IntentHelper.openWebActivity(IntentHelper.java:225)
E/GeckoCrashHandler(30860): 	at org.mozilla.gecko.IntentHelper.handleMessage(IntentHelper.java:99)
E/GeckoCrashHandler(30860): 	at org.mozilla.gecko.EventDispatcher.dispatchEvent(EventDispatcher.java:325)
E/GeckoCrashHandler(30860): 	at org.mozilla.gecko.EventDispatcher.dispatchEvent(EventDispatcher.java:248)
E/GeckoCrashHandler(30860): 	at org.mozilla.gecko.GeckoAppShell.handleGeckoMessage(GeckoAppShell.java:2275)
E/GeckoCrashHandler(30860): 	at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
E/GeckoCrashHandler(30860): 	at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:436)
E/GeckoCrashHandler(30860): Main thread (1) stack:
E/GeckoCrashHandler(30860):     android.os.MessageQueue.nativePollOnce(Native Method)
E/GeckoCrashHandler(30860):     android.os.MessageQueue.next(MessageQueue.java:143)
E/GeckoCrashHandler(30860):     android.os.Looper.loop(Looper.java:122)
E/GeckoCrashHandler(30860):     android.app.ActivityThread.main(ActivityThread.java:5291)
E/GeckoCrashHandler(30860):     java.lang.reflect.Method.invoke(Native Method)
E/GeckoCrashHandler(30860):     java.lang.reflect.Method.invoke(Method.java:372)
E/GeckoCrashHandler(30860):     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
E/GeckoCrashHandler(30860):     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
D/AndroidRuntime(31527): >>>>>> START com.android.internal.os.RuntimeInit uid 10250 <<<<<<
D/AndroidRuntime(31527): CheckJNI is OFF
(Assignee)

Comment 1

3 years ago
Created attachment 8663798 [details] [diff] [review]
record-activity.patch

This patch adds an activity mapping for the "record" activity. I did some refactoring because getAction() in RecordMapping doesn't return a constant string.
Assignee: nobody → fabrice
Attachment #8663798 - Flags: review?(snorp)
Attachment #8663798 - Flags: review?(snorp) → review+
https://hg.mozilla.org/mozilla-central/rev/4740ebc51a92
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.