Fixed crash when local file was deleted
This commit is contained in:
parent
75ef24159e
commit
d90b2b37bc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue