Skip to content
Snippets Groups Projects
Commit 11ec9b73 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix NullPointerException

parent ac839dca
No related branches found
No related tags found
1 merge request!1073Beta fixes
Pipeline #132688 passed with stage
in 3 minutes and 20 seconds
......@@ -57,8 +57,8 @@ private fun Array<VideoGroup>.sanitizeGroups() = map { videoGroup ->
* Update the [VideoGroup.isNetwork] flag if needed (at least one media is a network one)
*/
private fun checkIsNetwork(videoGroup: VideoGroup) {
videoGroup.media(Medialibrary.SORT_DEFAULT, false, true, videoGroup.mediaCount(), 0).forEach {
if (it?.uri?.scheme?.isSchemeFile() == false) {
videoGroup.media(Medialibrary.SORT_DEFAULT, false, true, videoGroup.mediaCount(), 0).filterNotNull().forEach {
if (it.uri?.scheme?.isSchemeFile() == false) {
videoGroup.isNetwork = true
return@forEach
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment