summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Spielmann <martin.spielmann@pingunaut.com>2017-05-22 00:39:49 +0200
committerMartin Spielmann <martin.spielmann@pingunaut.com>2017-05-22 00:39:49 +0200
commitfc854d6819c9d28fae94435aa3d46cea4e169af0 (patch)
tree47a55542d089101e5f9b895517b81bd7d5e4120c /src
parentc3e317a28899915036517c3a05a2b883796f633d (diff)
downloadgitblit-fc854d6819c9d28fae94435aa3d46cea4e169af0.tar.gz
gitblit-fc854d6819c9d28fae94435aa3d46cea4e169af0.zip
Revert "Fix nullpointer exception with unsupported URL protocol #1237"
This reverts commit 51b9b7f9016899bbf8a39f6bc33a916a3d2b3838.
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 74f58c65..b993eb66 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 != null && url.transport.equals(preferredTransport)) {
+ if (url.transport.equals(preferredTransport)) {
itr.remove();
preferredUrl = url;
break;