Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325861 - [repoView] Deleting a repository fails
Summary: [repoView] Deleting a repository fails
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.10.0-M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 328406 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-21 10:37 EDT by Jens Baumgart CLA
Modified: 2010-11-02 09:00 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***