aboutsummaryrefslogtreecommitdiff
path: root/Hotline
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-02-05 21:50:53 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-02-05 21:50:53 +0100
commitf6e2ff116a160d66cf8c07a410d25f496645637a (patch)
tree24c15e45e482b87f8933a4d0aeda1b12c2cb1d26 /Hotline
parent8cbbc5d614354c9ce94922762b78d9e61bbc61f6 (diff)
Prevent crash when password is empty
Diffstat (limited to 'Hotline')
-rw-r--r--Hotline/Hotline/HotlineProtocol.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/Hotline/Hotline/HotlineProtocol.swift b/Hotline/Hotline/HotlineProtocol.swift
index ff91672..70636a6 100644
--- a/Hotline/Hotline/HotlineProtocol.swift
+++ b/Hotline/Hotline/HotlineProtocol.swift
@@ -245,7 +245,7 @@ struct HotlineAccount: Identifiable {
}
if fieldType == .userPassword {
- self.password = field.getObfuscatedString()!
+ self.password = field.getObfuscatedString() ?? ""
}
if fieldType == .userAccess, let opts = field.getUInt64(){