Skip to content

Commit

Permalink
Fix a bug with issues dashboard
Browse files Browse the repository at this point in the history
Issues from issue dashboard were not displaying because of
null repository variable.
  • Loading branch information
atermenji committed Nov 5, 2013
1 parent 3fada4d commit be39382
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ protected void onCreate(Bundle savedInstanceState) {
// avatar URL
if (issueNumbers.length == 1
&& (user.get() == null || user.get().getAvatarUrl() == null))
new RefreshRepositoryTask(this, repo != null ? repo
: repoIds.get(0)) {
new RefreshRepositoryTask(this, repo != null ? repo : repoIds.get(0)) {

@Override
protected void onSuccess(Repository fullRepository)
Expand Down Expand Up @@ -345,8 +344,8 @@ private void checkCollaboratorStatus() {

@Override
protected Boolean run(Account account) throws Exception {
return collaboratorService.isCollaborator(
repo, AccountUtils.getLogin(IssuesViewActivity.this));
return collaboratorService.isCollaborator(repo != null ? repo : repoIds.get(0),
AccountUtils.getLogin(IssuesViewActivity.this));
}

@Override
Expand Down

0 comments on commit be39382

Please sign in to comment.