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);
|
p.setChapters(chapters);
|
||||||
}
|
}
|
||||||
Log.i(TAG, "Chapters loaded");
|
Log.i(TAG, "Chapters loaded");
|
||||||
} catch (IOException | ID3ReaderException e) {
|
} catch (IOException | ID3ReaderException | IllegalArgumentException e) {
|
||||||
Log.e(TAG, Log.getStackTraceString(e));
|
Log.e(TAG, Log.getStackTraceString(e));
|
||||||
} finally {
|
} finally {
|
||||||
IOUtils.closeQuietly(in);
|
IOUtils.closeQuietly(in);
|
||||||
|
@ -164,7 +164,7 @@ public class ChapterUtils {
|
||||||
if (input != null) {
|
if (input != null) {
|
||||||
readOggChaptersFromInputStream(media, input);
|
readOggChaptersFromInputStream(media, input);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException | IllegalArgumentException e) {
|
||||||
Log.e(TAG, Log.getStackTraceString(e));
|
Log.e(TAG, Log.getStackTraceString(e));
|
||||||
} finally {
|
} finally {
|
||||||
IOUtils.closeQuietly(input);
|
IOUtils.closeQuietly(input);
|
||||||
|
|
Loading…
Reference in New Issue