Skip to content

Commit c3a4525

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,10 +743,11 @@ fun ProxyServicesSettingsScreen(
743743
verticalAlignment = Alignment.CenterVertically,
744744
) {
745745
TextButton(onClick = {
746+
val proxyPort = proxyPort.text.toIntOrNull() ?: 80
746747
sharedSettingsViewModel.checkConnection(
747748
ManualProxy(
748749
host = proxyHost.text,
749-
port = proxyPort.text.toInt(),
750+
port = proxyPort,
750751
username = proxyUsername.text,
751752
password = proxyPassword.text,
752753
),

0 commit comments

Comments
 (0)