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

Fix NullPointerException when launching the DebugLogService

parent d269a06d
No related branches found
No related tags found
1 merge request!1279Fix NullPointerException when launching the DebugLogService
Pipeline #197515 passed with stage
in 7 minutes and 45 seconds
......@@ -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
}
......
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