Fixed NPE when loading ogg chapters
This commit is contained in:
parent
3f1c1c4bf5
commit
9e68b8b0a3
|
@ -112,6 +112,9 @@ public class ChapterUtils {
|
|||
VorbisCommentChapterReader reader = new VorbisCommentChapterReader();
|
||||
reader.readInputStream(input);
|
||||
List<Chapter> chapters = reader.getChapters();
|
||||
if (chapters == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
Collections.sort(chapters, new ChapterStartTimeComparator());
|
||||
enumerateEmptyChapterTitles(chapters);
|
||||
if (chaptersValid(chapters)) {
|
||||
|
|
Loading…
Reference in New Issue