From 1b045360b3a49919feb742e9d1e01f1311cfdd23 Mon Sep 17 00:00:00 2001 From: Michael Hoffmeister Date: Wed, 2 Aug 2023 18:04:15 +0200 Subject: [PATCH] * bug fix reported by Matthias --- src/AasxCsharpLibrary/Extensions/ExtendIReferable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AasxCsharpLibrary/Extensions/ExtendIReferable.cs b/src/AasxCsharpLibrary/Extensions/ExtendIReferable.cs index 202336eb4..68ebfafb9 100644 --- a/src/AasxCsharpLibrary/Extensions/ExtendIReferable.cs +++ b/src/AasxCsharpLibrary/Extensions/ExtendIReferable.cs @@ -487,7 +487,7 @@ public static string CollectIdShortByParent(this IReferable referable) head = parentReferable.CollectIdShortByParent() + "/"; // add own var myid = ""; - if (string.IsNullOrEmpty(referable.IdShort)) + if (!string.IsNullOrEmpty(referable.IdShort)) myid = referable.IdShort.Trim(); // together return head + myid;