diff --git a/app/src/main/java/io/xpipe/app/rdp/MstscRdpClient.java b/app/src/main/java/io/xpipe/app/rdp/MstscRdpClient.java index 9fbc49743..39cb5337e 100644 --- a/app/src/main/java/io/xpipe/app/rdp/MstscRdpClient.java +++ b/app/src/main/java/io/xpipe/app/rdp/MstscRdpClient.java @@ -163,10 +163,15 @@ public class MstscRdpClient implements ExternalApplicationType.PathApplication, WindowsRegistry.HKEY_CURRENT_USER, "Software\\Microsoft\\Terminal Server Client\\Servers\\localhost"); - var localhost = configuration + var fullAddress = configuration .getConfig() - .get("full address") - .orElseThrow() + .get("full address"); + if (fullAddress.isEmpty()) { + return false; + } + + var localhost = fullAddress + .get() .getValue() .startsWith("localhost"); if (localhost) {