Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check repositories are non-empty before indexing into

Bug: 375863
Change-Id: I958da1e320e429f176acd632f5124ad6dcf0203a
  • Loading branch information...
commit e733d2086f20d222876bf88c0320bcd647643a55 1 parent 81ca26e
@kevinsawicki kevinsawicki authored
View
3  org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/CommitActionHandler.java
@@ -31,6 +31,9 @@
public Object execute(final ExecutionEvent event) throws ExecutionException {
final Repository[] repos = getRepositories(event);
+ if (repos.length == 0)
+ return null;
+
final Shell shell = getShell(event);
IResource[] resourcesInScope;
try {
Please sign in to comment.
Something went wrong with that request. Please try again.