Fix: App crashes on second open when local address empty
This commit is contained in:
1 parent
5aa82bec70
commit
2dd84e7c56
1 file changed
+1
-1
@@ -175,7 +175,7 @@ object Preferences {
|
||||
|
||||
@JvmStatic
|
||||
fun isInUseServerAddressLocal(): Boolean {
|
||||
return getInUseServerAddress() == getLocalAddress()
|
||||
return getInUseServerAddress() == getLocalAddress() && !getLocalAddress().isNullOrEmpty()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
|
||||
Reference in new issue
Block a user