Skip to content

Commit 472ced3

Browse files
authored
Merge pull request #300 from open-eid/MOPPAND-1699
Fix for empty Proxy port crash (check connectivity).
2 parents d328db8 + c3a4525 commit 472ced3

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)