Skip to content

Commit

Permalink
INSPECTIT-2172: Double-click listener in repository manager to check …
Browse files Browse the repository at this point in the history
…for empty selection
  • Loading branch information
Ivan Senic authored and pbouillet committed Aug 26, 2016
1 parent 250363a commit a24a7e0
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -753,6 +753,11 @@ private void process() {
PlatformIdent platformIdent = null;

StructuredSelection selection = (StructuredSelection) treeViewer.getSelection();
// if selection is empty do nothing
if (selection.isEmpty()) {
return;
}

Object firstElement = selection.getFirstElement();
if (firstElement instanceof DeferredAgentsComposite) {
repositoryDefinition = ((DeferredAgentsComposite) firstElement).getRepositoryDefinition();
Expand Down

0 comments on commit a24a7e0

Please sign in to comment.