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:
parent
1986837be8
commit
725c815e32
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user