Skip to content

Commit

Permalink
fix: NullPointer in GithubRepo.getPathFromRepositoryUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
tschulte committed Oct 18, 2017
1 parent 82b5e84 commit e8cc660
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ class GithubRepo extends GitRepo {
boolean isGithubComRepository = (repositoryUrl ==~ /.*github.com[\/:]((?:.+?)\/(?:.+?))(?:\.git)/)
Matcher matcher = (repositoryUrl =~ /.+[\/:](.+?\/.+?)(?:\.git)$/)

if (!matcher)
return null

if (isGithubComRepository || this.isGhEnterprise) {
return matcher.group(1)
}
Expand Down

0 comments on commit e8cc660

Please sign in to comment.