[Android] Fix NullPointerException when launching the DebugLogService
Nicolas Pomepuy
git at videolan.org
Mon Mar 7 07:49:31 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Mar 3 11:16:58 2022 +0100| [243d71dc824987c14eeca97f1f8224bd3b4ef16e] | committer: Nicolas Pomepuy
Fix NullPointerException when launching the DebugLogService
> https://code.videolan.org/videolan/vlc-android/commit/243d71dc824987c14eeca97f1f8224bd3b4ef16e
---
application/vlc-android/src/org/videolan/vlc/DebugLogService.kt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt b/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt
index 66a00c289..57c584fdb 100644
--- a/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt
@@ -60,7 +60,7 @@ class DebugLogService : Service(), Logcat.Callback, Runnable {
return super.getApplicationContext().getContextWithLocale(AppContextProvider.locale)
}
- override fun onBind(intent: Intent): IBinder? {
+ override fun onBind(intent: Intent?): IBinder {
return binder
}
@@ -227,7 +227,7 @@ class DebugLogService : Service(), Logcat.Callback, Runnable {
saveThread!!.start()
}
- override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
+ override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
if (AndroidUtil.isOOrLater) forceForeground()
return START_STICKY
}
More information about the Android
mailing list