Skip to content

Commit

Permalink
Merge pull request gitblit-org#1238 from pingunaut/master
Browse files Browse the repository at this point in the history
Add nullcheck  during favorite protocol determination
  • Loading branch information
gitblit committed May 22, 2017
2 parents 2f74123 + 279a5b6 commit e706776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/gitblit/manager/ServicesManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public int compare(RepositoryUrl o1, RepositoryUrl o2) {
Iterator<RepositoryUrl> itr = list.iterator();
while (itr.hasNext()) {
RepositoryUrl url = itr.next();
if (url.transport.equals(preferredTransport)) {
if (url.transport != null && url.transport.equals(preferredTransport)) {
itr.remove();
preferredUrl = url;
break;
Expand Down

0 comments on commit e706776

Please sign in to comment.