In order to avoid potential crash, catch getNetworkInterfaces() null pointer exception
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user