mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Small improvement
This commit is contained in:
parent
4f87b4a1ff
commit
6e035a8655
1 changed files with 3 additions and 1 deletions
|
@ -85,9 +85,11 @@ public class CalendarHelper {
|
|||
static ICalendar parse(Context context, File file) throws IOException {
|
||||
try (ICalReader reader = new ICalReader(file)) {
|
||||
ICalendar icalendar = reader.readNext();
|
||||
if (icalendar == null)
|
||||
throw new IOException("Invalid iCal file");
|
||||
|
||||
for (ParseWarning warning : reader.getWarnings())
|
||||
Log.i("Event warning " + warning);
|
||||
EntityLog.log(context, "Event warning " + warning);
|
||||
|
||||
return icalendar;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue