Describe the bug
App crashes when scanning with an Ethernet connection. Looks like just a small nullpointer exception for bssid, since no wifi.
To Reproduce
Steps to reproduce the behavior:
- Connect Ethernet to phone.
- Scan in app
Device
- Device: xiaomi redmit note 12 pro+
- OS: android 14
- Ning Version 3.0.3
- rooted? yes
LogCat Logs
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: Process: de.csicar.ning, PID: 11587
AndroidRuntime: java.lang.NullPointerException: getBSSID(...) must not be null
AndroidRuntime: at de.csicar.ning.ScanRepository$startScan$2.invokeSuspend(ScanRepository.kt:36)
AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
AndroidRuntime: at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
AndroidRuntime: at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
AndroidRuntime: Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@f8ea997, Dispatchers.Main]
Describe the bug
App crashes when scanning with an Ethernet connection. Looks like just a small nullpointer exception for bssid, since no wifi.
To Reproduce
Steps to reproduce the behavior:
Device
LogCat Logs
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: Process: de.csicar.ning, PID: 11587
AndroidRuntime: java.lang.NullPointerException: getBSSID(...) must not be null
AndroidRuntime: at de.csicar.ning.ScanRepository$startScan$2.invokeSuspend(ScanRepository.kt:36)
AndroidRuntime: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
AndroidRuntime: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
AndroidRuntime: at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
AndroidRuntime: at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
AndroidRuntime: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
AndroidRuntime: Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@f8ea997, Dispatchers.Main]