Bug 904551 - Check for null uri received from camera image requests. r=lucasr

This commit is contained in:
Wes Johnston 2013-11-01 12:21:33 -07:00
parent a4487dcd21
commit 0904ed4341

View File

@ -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;
}