diff options
author | Martin Spielmann <martin.spielmann@pingunaut.com> | 2017-05-22 00:39:49 +0200 |
---|---|---|
committer | Martin Spielmann <martin.spielmann@pingunaut.com> | 2017-05-22 00:39:49 +0200 |
commit | fc854d6819c9d28fae94435aa3d46cea4e169af0 (patch) | |
tree | 47a55542d089101e5f9b895517b81bd7d5e4120c /src | |
parent | c3e317a28899915036517c3a05a2b883796f633d (diff) | |
download | gitblit-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.java | 2 |
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; |