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

Fix NullPointerException

parent c4e9dd7c
No related branches found
No related tags found
1 merge request!1068Beta fixes
Pipeline #126792 passed with stage
in 2 minutes and 37 seconds
......@@ -297,7 +297,7 @@ open class BaseBrowserAdapter(val browserContainer: BrowserContainer<MediaLibrar
}
private fun getProtocol(media: MediaWrapper): String? {
return if (media.type != MediaWrapper.TYPE_DIR) null else media.uri.scheme
return if (media.type != MediaWrapper.TYPE_DIR) null else media.uri?.scheme
}
open fun checkBoxAction(v: View, mrl: String) {}
......
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