Closed ketankhairnar closed 8 years ago
Please checkout below 2 lines from the constructor of com.iheartradio.m3u8.data.MasterPlaylist. mPlaylists = playlists == null ? Collections.emptyList() : Collections.unmodifiableList(playlists); mIFramePlaylists = playlists == null ? Collections.emptyList() : Collections.unmodifiableList(iFramePlaylists);
If one forgets to add IFrameStreamInfo list while creating MasterPlaylist. It throws runtime NPE
Thanks @ketankhairnar !
I will create a fix shortly.
I have released 0.2.1 with the fix to maven central. It may be a couple hours before it becomes publicly available.
:+1:
Please checkout below 2 lines from the constructor of com.iheartradio.m3u8.data.MasterPlaylist.emptyList() : Collections.unmodifiableList(playlists);
mIFramePlaylists = playlists == null ? Collections.emptyList() : Collections.unmodifiableList(iFramePlaylists);
mPlaylists = playlists == null ? Collections.
If one forgets to add IFrameStreamInfo list while creating MasterPlaylist. It throws runtime NPE