From fd3d21742d21023c8f6cc92d19eda6a82ad64e47 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Tue, 19 Nov 2024 08:01:35 +0700 Subject: [PATCH] Minor improvment if "\n" gets returned --- backend/LexBoxApi/Services/HgService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/LexBoxApi/Services/HgService.cs b/backend/LexBoxApi/Services/HgService.cs index 80601914a..32e328943 100644 --- a/backend/LexBoxApi/Services/HgService.cs +++ b/backend/LexBoxApi/Services/HgService.cs @@ -271,7 +271,7 @@ private string[] GetWsList(System.Xml.XmlElement root, string tagName) { var result = await ExecuteHgCommandServerCommand(code, "flexmodelversion", token); var text = await result.ReadAsStringAsync(token); - if (string.IsNullOrEmpty(text)) return null; + if (string.IsNullOrWhiteSpace(text)) return null; try { var json = JsonDocument.Parse(text);