diff --git a/app/src/main/java/io/legado/app/service/WebService.kt b/app/src/main/java/io/legado/app/service/WebService.kt index d05b2042e..012623865 100644 --- a/app/src/main/java/io/legado/app/service/WebService.kt +++ b/app/src/main/java/io/legado/app/service/WebService.kt @@ -78,7 +78,7 @@ class WebService : BaseService() { updateNotification(getString(R.string.http_ip, address.hostAddress, port)) } catch (e: IOException) { launch { - toast(e.localizedMessage) + toast(e.localizedMessage ?: "") stopSelf() } }