In order to avoid potential crash, catch getNetworkInterfaces() null pointer exception

This commit is contained in:
Juha Heinanen
2023-05-10 16:21:07 +03:00
parent f30e7fc4de
commit 823639b3c0

View File

@ -446,7 +446,9 @@ object Utils {
}
}
} catch (ex: SocketException) {
Log.e(TAG, ex.toString())
Log.e(TAG, "hotSpotAddresses SocketException: $ex")
} catch (ex: NullPointerException) {
Log.e(TAG, "hotSpotAddresses NullPointerException: $ex")
}
return result
}