mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue