Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325861

Summary: [repoView] Deleting a repository fails
Product: [Technology] EGit Reporter: Jens Baumgart <jens.baumgart>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: casey.mcginty, mathias.kinzler
Version: 0.10.0   
Target Milestone: 0.10.0-M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jens Baumgart CLA 2010-09-21 10:37:53 EDT
Execute Delete Repository in Repositories View.
Fails with:

org.eclipse.core.commands.ExecutionException: No selection found while executing org.eclipse.egit.ui.RepositoriesViewDelete
at org.eclipse.ui.handlers.HandlerUtil.noVariableFound(HandlerUtil.java:40)
at org.eclipse.ui.handlers.HandlerUtil.getVariableChecked(HandlerUtil.java:89)
at org.eclipse.ui.handlers.HandlerUtil.getCurrentSelectionChecked(HandlerUtil.java:416)
at org.eclipse.egit.ui.internal.repository.tree.command.RepositoriesViewCommandHandler.getSelectedNodes(RepositoriesViewCommandHandler.java:42)
at org.eclipse.egit.ui.internal.repository.tree.command.RemoveCommand$1.run(RemoveCommand.java:107)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Does not happen on Windows.
Comment 1 Jens Baumgart CLA 2010-09-21 10:38:51 EDT
Retrieving selection in worker thread might cause the problem.
Comment 2 Jens Baumgart CLA 2010-09-21 11:00:29 EDT
Fix proposed: http://egit.eclipse.org/r/#change,1637
Comment 3 Mathias Kinzler CLA 2010-09-30 10:33:08 EDT
Merged as 713fa7faeda7f44964634268ee2d3647d18976e9
Comment 4 Mathias Kinzler CLA 2010-11-02 09:00:37 EDT
*** Bug 328406 has been marked as a duplicate of this bug. ***