RL: resolve crash on nullable object

This commit is contained in:
Milos Kozak 2022-06-25 10:29:20 +02:00
parent 530004fb57
commit d71cc391fe

View file

@ -30,7 +30,7 @@ class ServiceTaskExecutor @Inject constructor() : ThreadPoolExecutor(1, 1, 10000
task.preOp() task.preOp()
} }
override fun afterExecute(r: Runnable, t: Throwable) { override fun afterExecute(r: Runnable, t: Throwable?) {
// This is run on either caller UI thread or Service UI thread. // This is run on either caller UI thread or Service UI thread.
val task = r as ServiceTask val task = r as ServiceTask
task.postOp() task.postOp()