Skip to content

Commit

Permalink
Fix nullpointer exception with unsupported URL protocol gitblit-org#1237
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Spielmann committed May 21, 2017
1 parent 337443c commit 51b9b7f
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 51b9b7f

Please sign in to comment.