diff --git a/src/main/java/org/havenapp/main/ui/EventActivity.java b/src/main/java/org/havenapp/main/ui/EventActivity.java index 309201ff..b55f7147 100644 --- a/src/main/java/org/havenapp/main/ui/EventActivity.java +++ b/src/main/java/org/havenapp/main/ui/EventActivity.java @@ -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);