Added null check for data

This commit is contained in:
misaochan 2016-07-20 17:11:38 +12:00
parent 18ec26c3fb
commit c7b82891b4

View file

@ -92,9 +92,11 @@ public class ContributionsListFragment extends Fragment {
public void onActivityResult(int requestCode, int resultCode, Intent data) { public void onActivityResult(int requestCode, int resultCode, Intent data) {
//FIXME: must get the file data for Google Photos when receive the intent answer, in the onActivityResult method //FIXME: must get the file data for Google Photos when receive the intent answer, in the onActivityResult method
super.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data);
if (data != null) {
Uri imageData = data.getData(); Uri imageData = data.getData();
controller.handleImagePicked(requestCode, imageData); controller.handleImagePicked(requestCode, imageData);
} }
}
@Override @Override