Fail without crashing the app

This commit is contained in:
Mygod
2020-08-09 16:36:35 -04:00
committed by GitHub
parent d8460de59f
commit ffe087cc3b

View File

@@ -214,7 +214,9 @@ class RepeaterManager(private val parent: TetheringFragment) : Manager(), Servic
} catch (e: Exception) {
if (e !is CancellationException) Timber.w(e)
passphrase = group.passphrase
bssid = group.owner?.deviceAddress?.let(MacAddressCompat.Companion::fromString)
try {
bssid = group.owner?.deviceAddress?.let(MacAddressCompat.Companion::fromString)
} catch (_: IllegalArgumentException) { }
this to true
}
}