This is an automated email from the ASF dual-hosted git repository.

hansva 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 2674599e1e fix issue introduced in #3109
     new a88baf8c3d Merge pull request #3160 from hansva/master
2674599e1e is described below

commit 2674599e1e1e56f10a45b1e93e29fe3dfd1867fa
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Wed Aug 16 18:42:15 2023 +0200

    fix issue introduced in #3109
---
 .../java/org/apache/hop/ui/hopgui/delegates/HopGuiFileDelegate.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/delegates/HopGuiFileDelegate.java 
b/ui/src/main/java/org/apache/hop/ui/hopgui/delegates/HopGuiFileDelegate.java
index 20e8410990..80dc8b860b 100644
--- 
a/ui/src/main/java/org/apache/hop/ui/hopgui/delegates/HopGuiFileDelegate.java
+++ 
b/ui/src/main/java/org/apache/hop/ui/hopgui/delegates/HopGuiFileDelegate.java
@@ -133,10 +133,13 @@ public class HopGuiFileDelegate {
     try {
       IHopFileTypeHandler typeHandler = getActiveFileTypeHandler();
       IHopFileType fileType = typeHandler.getFileType();
+      FileObject file = null;
       if (!fileType.hasCapability(IHopFileType.CAPABILITY_SAVE_AS)) {
         return null;
       }
-      FileObject file = HopVfs.getFileObject(typeHandler.getFilename());
+      if (typeHandler.getFilename() != null) {
+        file = HopVfs.getFileObject(typeHandler.getFilename());
+      }
 
       String filename =
           BaseDialog.presentFileDialog(

Reply via email to