Skip to content

Commit

Permalink
Merge branch 'master' of github.com:guardianproject/haven
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Jul 2, 2018
2 parents 4cba15e + f954729 commit c845b4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/havenapp/main/ui/EventActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ private void shareEvent ()
//convert from paths to Android friendly Parcelable Uri's
for (EventTrigger trigger : mEvent.getEventTriggers())
{
// ignore triggers for which we do not have valid file/file-paths
if (trigger.getMimeType() == null || trigger.getPath() == null)
continue;

File fileIn = new File(trigger.getPath());
Uri u = Uri.fromFile(fileIn);
uris.add(u);
Expand Down

0 comments on commit c845b4a

Please sign in to comment.