Skip to content

Commit

Permalink
Prevent Potential NPE. (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtnord authored Mar 2, 2022
1 parent 6873f35 commit 18d333e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ public void visitSources(SCMSourceObserver observer) throws IOException, Interru
}

for (GHRepository repo : repositories) {
if (!repo.getOwnerName().equals(repoOwner)) {
if (!repoOwner.equals(repo.getOwnerName())) {
continue; // ignore repos in other orgs when using GHMyself
}

Expand Down

0 comments on commit 18d333e

Please sign in to comment.