summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Spielmann <martin.spielmann@pingunaut.com>2017-05-21 22:50:48 +0200
committerMartin Spielmann <martin.spielmann@pingunaut.com>2017-05-21 22:50:48 +0200
commit51b9b7f9016899bbf8a39f6bc33a916a3d2b3838 (patch)
tree1c4d4a2e8183a9337569b3c2d789076c7f094d0c /src
parent337443cc11d09b54de167a5e677816152d6969fb (diff)
downloadgitblit-51b9b7f9016899bbf8a39f6bc33a916a3d2b3838.tar.gz
gitblit-51b9b7f9016899bbf8a39f6bc33a916a3d2b3838.zip
Fix nullpointer exception with unsupported URL protocol #1237
Diffstat (limited to 'src')
-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;