Skip to content

Commit 3c4ef24

Browse files
committed
MOPPAND-1699 Fix for empty Proxy port crash (check connectivity).
1 parent ac186ee commit 3c4ef24

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/src/main/kotlin/ee/ria/DigiDoc/fragment/screen/ProxyServicesSettingsScreen.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,10 +743,16 @@ fun ProxyServicesSettingsScreen(
743743
verticalAlignment = Alignment.CenterVertically,
744744
) {
745745
TextButton(onClick = {
746+
val proxyPort =
747+
if (proxyPort.text == "") {
748+
0
749+
} else {
750+
proxyPort.text.toInt()
751+
}
746752
sharedSettingsViewModel.checkConnection(
747753
ManualProxy(
748754
host = proxyHost.text,
749-
port = proxyPort.text.toInt(),
755+
port = proxyPort,
750756
username = proxyUsername.text,
751757
password = proxyPassword.text,
752758
),

0 commit comments

Comments
 (0)