1
0
mirror of https://github.com/etesync/android synced 2024-11-14 03:39:52 +00:00

Fix crash bug when ORGANIZER has no URI scheme

This commit is contained in:
rfc2822 2013-12-03 20:34:50 +01:00
parent 1986837be8
commit 725c815e32

View File

@ -484,7 +484,7 @@ public class LocalCalendar extends LocalCollection<Event> {
if (event.getOrganizer() != null && event.getOrganizer().getCalAddress() != null) {
URI organizer = event.getOrganizer().getCalAddress();
if (organizer.getScheme().equalsIgnoreCase("mailto"))
if (organizer.getScheme() != null && organizer.getScheme().equalsIgnoreCase("mailto"))
builder = builder.withValue(Events.ORGANIZER, organizer.getSchemeSpecificPart());
}