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

Fix NullPointerException

parent 942783a5
No related branches found
No related tags found
1 merge request!1027Multiple beta fixes
......@@ -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()) {
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