mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
Bug 904551 - Check for null uri received from camera image requests. r=lucasr
This commit is contained in:
parent
a4487dcd21
commit
0904ed4341
@ -41,7 +41,8 @@ class CameraVideoResultHandler implements ActivityResultHandler {
|
||||
|
||||
@Override
|
||||
public void onActivityResult(int resultCode, Intent data) {
|
||||
if (data == null || resultCode != Activity.RESULT_OK) {
|
||||
// Intent.getData() can return null. Avoid a crash. See bug 904551.
|
||||
if (data == null || data.getData() == null || resultCode != Activity.RESULT_OK) {
|
||||
sendResult("");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user