Skip to content

TroubleCode list not working properly - FATAL EXCEPTION: DefaultDispatcher-worker-2 Process: com.example.kotlinobd, PID: 21452 java.lang.NumberFormatException: For input string: " "  #25

Open
@hitanshi2996

Description

@hitanshi2996

FATAL EXCEPTION: DefaultDispatcher-worker-2 Process: com.example.kotlinobd, PID: 21452 java.lang.NumberFormatException: For input string: " " at java.lang.Integer.parseInt(Integer.java:733) at com.github.eltonvs.obd.command.control.BaseTroubleCodesCommand$parseTroubleCodesList$troubleCodesList$1.invoke(TroubleCodes.kt:88) at com.github.eltonvs.obd.command.control.BaseTroubleCodesCommand$parseTroubleCodesList$troubleCodesList$1.invoke(TroubleCodes.kt:87) at kotlin.text.StringsKt___StringsKt.windowed(_Strings.kt:2359) at kotlin.text.StringsKt___StringsKt.chunked(_Strings.kt:2236) at com.github.eltonvs.obd.command.control.BaseTroubleCodesCommand.parseTroubleCodesList(TroubleCodes.kt:87) at com.github.eltonvs.obd.command.control.BaseTroubleCodesCommand.access$parseTroubleCodesList(TroubleCodes.kt:54) at com.github.eltonvs.obd.command.control.BaseTroubleCodesCommand$handler$1.invoke(TroubleCodes.kt:57) at com.github.eltonvs.obd.command.control.BaseTroubleCodesCommand$handler$1.invoke(TroubleCodes.kt:57) at com.github.eltonvs.obd.command.ObdCommand.handleResponse(ObdCommand.kt:23) at com.github.eltonvs.obd.connection.ObdDeviceConnection$run$2.invokeSuspend(ObdDeviceConnection.kt:36) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279) at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59) at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38) at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:1) at com.github.eltonvs.obd.connection.ObdDeviceConnection.run(ObdDeviceConnection.kt:28) at com.github.eltonvs.obd.connection.ObdDeviceConnection.run$default(ObdDeviceConnection.kt:23) at com.example.kotlinobd.MainConnectionActivity$retriveData$latestNews$1.invokeSuspend(MainConnectionActivity.kt:505) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@3b8b203, Dispatchers.Default]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions