Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #723 from aubiyko/FixAndroidPickPhotosNRE
Browse files Browse the repository at this point in the history
Fixed Android NullReferenceExcepiton on canceling/dismissing PickPhotosAsync.
  • Loading branch information
jamesmontemagno authored Jul 21, 2019
2 parents 56d1d6e + 397233e commit c9f83b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Media.Plugin/Android/MediaImplementation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ bool IsValidExif(ExifInterface exif)

var medias = await TakeMediasAsync("image/*", Intent.ActionPick, new StorePickerMediaOptions { MultiPicker = true }, token);

if (medias == null)
return null;

if (options == null)
options = new PickMediaOptions();

Expand Down

0 comments on commit c9f83b1

Please sign in to comment.