summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/manager/ServicesManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/gitblit/manager/ServicesManager.java')
-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;