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

Fix NullPointerException

parent 6ea5c601
No related branches found
No related tags found
1 merge request!1068Beta fixes
Pipeline #126788 passed with stage
in 2 minutes and 37 seconds
......@@ -58,7 +58,7 @@ private fun Array<VideoGroup>.sanitizeGroups() = map { videoGroup ->
*/
private fun checkIsNetwork(videoGroup: VideoGroup) {
videoGroup.media(Medialibrary.SORT_DEFAULT, false, true, videoGroup.mediaCount(), 0).forEach {
if (it.uri?.scheme?.isSchemeFile() == false) {
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