leehaut opened a new issue, #6404:
URL: https://github.com/apache/hop/issues/6404
### Apache Hop version?
2.17.0-SNAPSHOT
### Java version?
openjdk 17
### Operating system
Windows
### What happened?
When creating a new Pipeline Unit Test in the Hop GUI:
1. If the user clicks Cancel or closes the dialog window
2. The unit test is still added to the unit test list, even though the
creation was not confirmed.
Later, when the user tries to edit this unit test, Hop throws an error
indicating that the metadata cannot be found, because the unit test was never
fully or correctly created.
```txt
org.apache.hop.core.exception.HopException:
Unable to find element 'demo_2 UNIT' in the metadata
at
org.apache.hop.ui.core.metadata.MetadataManager.editMetadata(MetadataManager.java:182)
at
org.apache.hop.testing.gui.TestingGuiPlugin.editUnitTest(TestingGuiPlugin.java:903)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at
org.apache.hop.ui.core.gui.BaseGuiWidgets.lambda$getListener$1(BaseGuiWidgets.java:213)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4364)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1217)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4162)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3750)
at org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:514)
at org.apache.hop.ui.hopgui.HopGui.main(HopGui.java:387)
```
### 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]