alfarioekaputra opened a new issue, #7276: URL: https://github.com/apache/hop/issues/7276
### Apache Hop version? 2.18.0 ### Java version? 17.0.19 ### Operating system Linux ### What happened? ## Apache Hop Version Apache Hop Client 2.18.0 ## Java Version ```text openjdk version "17.0.17" ``` (also reproduced with Java 21) ## Operating System WSL2 Ubuntu ## Description When using the **PGP Encrypt Files** workflow action, the action can be created and opened normally. However, after adding file or folder entries in the action configuration and attempting to save or reopen the action, Apache Hop throws a NullPointerException and the action can no longer be edited correctly. The issue appears to be related to cloning/copying the action metadata after file entries have been added. ## Steps to Reproduce 1. Create a new Workflow. 2. Add a **PGP Encrypt Files** action. 3. Open the action configuration. 4. Configure the PGP settings. 5. Add one or more file/folder entries to be encrypted. 6. Click OK to save. 7. Reopen the action (or edit it again). ## Actual Result A NullPointerException is thrown. ```text ERROR: Error copying action: ActionPGPEncryptFiles java.lang.NullPointerException: Cannot invoke "java.util.List.add(Object)" because "this.pgpFiles" is null at org.apache.hop.workflow.actions.pgpencryptfiles.ActionPGPEncryptFiles.lambda$new$0(ActionPGPEncryptFiles.java:221) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at org.apache.hop.workflow.actions.pgpencryptfiles.ActionPGPEncryptFiles.<init>(ActionPGPEncryptFiles.java:221) at org.apache.hop.workflow.actions.pgpencryptfiles.ActionPGPEncryptFiles.clone(ActionPGPEncryptFiles.java:226) ``` Additional log output: ```text ERROR: Fallback clone also failed for action: ActionPGPEncryptFiles java.lang.NullPointerException: Cannot invoke "java.util.List.add(Object)" because "this.pgpFiles" is null ``` ## Expected Result The action should save and reopen normally after file/folder entries are added. ## Notes * The action opens correctly when no file/folder entries are configured. * The exception only occurs after adding file/folder information. * Reproduced with both Java 17 and Java 21. * The stack trace indicates that `pgpFiles` is null during action cloning. ``` ActionPGPEncryptFiles.java:221 ActionPGPEncryptFiles.clone():226 ``` ### Issue Priority Priority: 3 ### Issue Component Component: Hop Gui -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
