assertion fixed

This commit is contained in:
Oleg Shpynov
2011-09-27 21:11:54 +04:00
parent 39e69b9793
commit abdee03c37
@@ -95,9 +95,11 @@ public class GithubRebaseAction extends DumbAwareAction {
return GithubUtil.findGitHubRemoteBranch(project, project.getBaseDir());
}
});
final List<GitRemote> gitRemotes = GitRemote.list(project, root);
LOG.assertTrue(githubRemote != null);
if (githubRemote == null){
return;
}
final List<GitRemote> gitRemotes = GitRemote.list(project, root);
final String pushUrl = githubRemote.pushUrl();
final String login = GithubSettings.getInstance().getLogin();
final int index = pushUrl.lastIndexOf(login);