mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Added null check for data
This commit is contained in:
parent
18ec26c3fb
commit
c7b82891b4
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue