This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new 3d676fbcdc Fix #8233: write the NUL separator as an escape so the
sources stay text (#8235)
3d676fbcdc is described below
commit 3d676fbcdc29ef3b06beea94e3c91eb74e4bec55
Author: Frank Skorgen <[email protected]>
AuthorDate: Wed Sep 2 14:10:44 2026 +0200
Fix #8233: write the NUL separator as an escape so the sources stay text
(#8235)
---
.../hop/ui/hopgui/perspective/metadata/MetadataPerspective.java | 4 ++--
.../main/java/org/apache/hop/ui/hopgui/search/HopGuiSearchHelper.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
index bcdc58f1c7..c90e934cdd 100644
---
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
+++
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
@@ -3158,7 +3158,7 @@ public class MetadataPerspective implements
IHopPerspective, TabClosable, IMetad
// by default. Seed each default-expanded node once per session so the
default holds until
// the user changes it.
boolean defaultExpanded = "C".equals(path[0]) || "UC".equals(path[0]);
- if (defaultExpanded && treeStateSeeded.add(String.join("�", path))) {
+ if (defaultExpanded && treeStateSeeded.add(String.join("\0", path))) {
TreeMemory.getInstance().storeExpanded(METADATA_PERSPECTIVE_TREE,
path, true);
}
item.setExpanded(TreeMemory.getInstance().isExpanded(METADATA_PERSPECTIVE_TREE,
path));
@@ -3177,7 +3177,7 @@ public class MetadataPerspective implements
IHopPerspective, TabClosable, IMetad
String[] path = treeMemoryPath(item);
if (path != null) {
TreeMemory.getInstance().storeExpanded(METADATA_PERSPECTIVE_TREE, path,
expanded);
- treeStateSeeded.add(String.join("�", path));
+ treeStateSeeded.add(String.join("\0", path));
}
}
diff --git
a/ui/src/main/java/org/apache/hop/ui/hopgui/search/HopGuiSearchHelper.java
b/ui/src/main/java/org/apache/hop/ui/hopgui/search/HopGuiSearchHelper.java
index c4f174ee88..e6d660f1f2 100644
--- a/ui/src/main/java/org/apache/hop/ui/hopgui/search/HopGuiSearchHelper.java
+++ b/ui/src/main/java/org/apache/hop/ui/hopgui/search/HopGuiSearchHelper.java
@@ -458,7 +458,7 @@ public final class HopGuiSearchHelper {
/** A match's user-visible identity within its object: where it is plus what
matched. */
private static String matchIdentity(ISearchResult result) {
- return Const.NVL(result.getComponent(), "") + "�" +
Const.NVL(result.getMatchingString(), "");
+ return Const.NVL(result.getComponent(), "") + "\0" +
Const.NVL(result.getMatchingString(), "");
}
/** Mutable per-object bucket used only while {@link #groupResults
grouping}. */