nadment opened a new issue, #9627:
URL: https://github.com/apache/hop/issues/9627

   ### Apache Hop version?
   
   SNAPSHOT-20261121
   
   ### Java version?
   
   21.0.10
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   When Hop GUI is closed, this error can be logged:
   
   ```
   org.eclipse.swt.SWTException: Widget is disposed
        at org.eclipse.swt.widgets.Tree.getSelection
        at 
org.apache.hop.ui.hopgui.perspective.explorer.ExplorerPerspective.getSelectedFile
        at org.apache.hop.git.GitGuiPlugin.getSelectedFile
        at org.apache.hop.git.GitGuiPlugin.enableButtons
        at org.apache.hop.git.GitGuiPlugin.rootChanged
        at 
org.apache.hop.ui.hopgui.perspective.explorer.ExplorerPerspective.determineRootFolderName
        at 
org.apache.hop.ui.hopgui.perspective.explorer.ExplorerPerspective.refresh
        at 
org.apache.hop.ui.hopgui.perspective.explorer.ExplorerPerspective.clearSearchFilters
        at 
org.apache.hop.ui.hopgui.perspective.explorer.ExplorerPerspective.lambda$2
        at org.eclipse.swt.widgets.Display.asyncExec
   ```
   
   The File Explorer perspective refreshes its tree in an `asyncExec` when a 
project is activated. When Hop GUI closes before that code runs, the tree is 
already disposed, and asking for the selected file fails.
   
   The refresh should do nothing when the tree is disposed, and 
`getSelectedFile()` / `getSelectedFiles()` should return nothing instead of 
failing.
   
   ### 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]

Reply via email to