From 32c5973cdcdb28f4261371c8e8ae76f28ac2fc5e Mon Sep 17 00:00:00 2001 From: Mygod Date: Thu, 3 Jan 2019 17:00:31 +0800 Subject: [PATCH] Fix possible race condition caused crash --- .../be/mygod/vpnhotspot/manage/LocalOnlyHotspotTileService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/manage/LocalOnlyHotspotTileService.kt b/mobile/src/main/java/be/mygod/vpnhotspot/manage/LocalOnlyHotspotTileService.kt index ace834fb..cabfe4bb 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/manage/LocalOnlyHotspotTileService.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/manage/LocalOnlyHotspotTileService.kt @@ -55,7 +55,7 @@ class LocalOnlyHotspotTileService : KillableTileService() { } else -> { state = Tile.STATE_ACTIVE - label = service.configuration!!.SSID + label = service.configuration?.SSID ?: getText(R.string.tethering_temp_hotspot) } } updateTile()