Fixed crash when local file was deleted

This commit is contained in:
ByteHamster 2020-07-12 23:30:43 +02:00
parent 75ef24159e
commit d90b2b37bc
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public class ChapterUtils {
p.setChapters(chapters);
}
Log.i(TAG, "Chapters loaded");
} catch (IOException | ID3ReaderException e) {
} catch (IOException | ID3ReaderException | IllegalArgumentException e) {
Log.e(TAG, Log.getStackTraceString(e));
} finally {
IOUtils.closeQuietly(in);
@ -164,7 +164,7 @@ public class ChapterUtils {
if (input != null) {
readOggChaptersFromInputStream(media, input);
}
} catch (IOException e) {
} catch (IOException | IllegalArgumentException e) {
Log.e(TAG, Log.getStackTraceString(e));
} finally {
IOUtils.closeQuietly(input);