You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
override suspend fun getDevicesInLan(ipAddress: String): Flow<DeviceData> =
callbackFlow {
val subNetDevices = SubnetDevices.fromLocalAddress()
.findDevices(object : SubnetDevices.OnSubnetDeviceFound {
override fun onDeviceFound(device: Device?) {
}
override fun onFinished(devicesFound: java.util.ArrayList<Device>?) {
}
})
awaitClose { subNetDevices.cancel() }
}
I got the error when running this code and it conveys me
java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.Enumeration.hasMoreElements()' on a null object reference
this one.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: