From 87d069b90120c46cc73be13aade83b4d750eac00 Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 13 Apr 2026 16:30:43 +0000 Subject: [PATCH] Check for rdp address --- .../main/java/io/xpipe/app/rdp/MstscRdpClient.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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) {