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,8 +92,10 @@ public class ContributionsListFragment extends Fragment {
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
super.onActivityResult(requestCode, resultCode, data);
Uri imageData = data.getData();
controller.handleImagePicked(requestCode, imageData);
if (data != null) {
Uri imageData = data.getData();
controller.handleImagePicked(requestCode, imageData);
}
}