summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2017-05-22 07:46:30 -0400
committerGitHub <noreply@github.com>2017-05-22 07:46:30 -0400
commite706776879285dd81ace1fe1472593a7cdb45b9c (patch)
tree1c4d4a2e8183a9337569b3c2d789076c7f094d0c /src/main/java/com/gitblit
parent2f74123ca0deaa138609a2126e0fc897167dac48 (diff)
parent279a5b606dc18ce9bb21a93e2e108090028369ca (diff)
downloadgitblit-e706776879285dd81ace1fe1472593a7cdb45b9c.tar.gz
gitblit-e706776879285dd81ace1fe1472593a7cdb45b9c.zip
Merge pull request #1238 from pingunaut/master
Add nullcheck during favorite protocol determination
Diffstat (limited to 'src/main/java/com/gitblit')
-rw-r--r--src/main/java/com/gitblit/manager/ServicesManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/manager/ServicesManager.java b/src/main/java/com/gitblit/manager/ServicesManager.java
index b993eb66..74f58c65 100644
--- a/src/main/java/com/gitblit/manager/ServicesManager.java
+++ b/src/main/java/com/gitblit/manager/ServicesManager.java
@@ -276,7 +276,7 @@ public class ServicesManager implements IServicesManager {
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;