[Android] Fix NPE
Nicolas Pomepuy
git at videolan.org
Tue Jun 1 12:17:27 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon May 31 09:17:00 2021 +0200| [72b00e3d08d10b6b33238f75334f09dff0d162c3] | committer: Nicolas Pomepuy
Fix NPE
> https://code.videolan.org/videolan/vlc-android/commit/72b00e3d08d10b6b33238f75334f09dff0d162c3
---
application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt b/application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
index 5b3514aa2..b590f895f 100644
--- a/application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/MediaParsingService.kt
@@ -343,7 +343,7 @@ class MediaParsingService : LifecycleService(), DevicesDiscoveryCb {
lastNotificationTime = currentTime
val discovery = withContext(Dispatchers.Default) {
val progressText = when {
- parsing > 0 -> getString(R.string.ml_parse_media) + " " + parsing + "% · " + Uri.parse(currentDiscovery).lastPathSegment
+ parsing > 0 -> getString(R.string.ml_parse_media) + " " + parsing + "% · " + Uri.parse(currentDiscovery ?: "").lastPathSegment
currentDiscovery != null -> getString(R.string.ml_discovering) + " " + Uri.decode(currentDiscovery?.removeFileProtocole())
else -> getString(R.string.ml_parse_media)
}
More information about the Android
mailing list