From 823639b3c0cc017413eee1f101925e07918fbbd0 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Wed, 10 May 2023 16:21:07 +0300 Subject: [PATCH] In order to avoid potential crash, catch getNetworkInterfaces() null pointer exception --- app/src/main/kotlin/com/tutpro/baresip/Utils.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/Utils.kt b/app/src/main/kotlin/com/tutpro/baresip/Utils.kt index bff234de..4739fedc 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Utils.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Utils.kt @@ -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 }