You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by mc...@apache.org on 2022/10/17 07:51:31 UTC
[hop] branch master updated: HOP-4474 Exception when closing HopGui if you have opened a file
This is an automated email from the ASF dual-hosted git repository.
mcasters pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/master by this push:
new 6977ea67fc HOP-4474 Exception when closing HopGui if you have opened a file
new 6037cb4701 Merge pull request #1742 from nadment/HOP-4474
6977ea67fc is described below
commit 6977ea67fc1ac79b81a1c1f38f6e97457d00a837
Author: Nicolas Adment <39...@users.noreply.github.com>
AuthorDate: Fri Oct 14 21:05:50 2022 +0200
HOP-4474 Exception when closing HopGui if you have opened a file
---
.../explorer/file/types/base/BaseExplorerFileTypeHandler.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/file/types/base/BaseExplorerFileTypeHandler.java b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/file/types/base/BaseExplorerFileTypeHandler.java
index 5fd7c824c5..3d04a878e7 100644
--- a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/file/types/base/BaseExplorerFileTypeHandler.java
+++ b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/file/types/base/BaseExplorerFileTypeHandler.java
@@ -37,6 +37,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import java.util.Collections;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -221,7 +222,8 @@ public abstract class BaseExplorerFileTypeHandler implements IHopFileTypeHandler
@Override
public Map<String, Object> getStateProperties() {
- return Collections.emptyMap();
+ // Return an empty editable map because HopGuiAuditDelegate tries to add properties
+ return new HashMap<>();
}
@Override