Revert "Fix nullpointer exception with unsupported URL protocol #1237"
This reverts commit 51b9b7f9016899bbf8a39f6bc33a916a3d2b3838.
diff --git a/src/main/java/com/gitblit/manager/ServicesManager.java b/src/main/java/com/gitblit/manager/ServicesManager.java
index 74f58c6..b993eb6 100644
--- a/src/main/java/com/gitblit/manager/ServicesManager.java
+++ b/src/main/java/com/gitblit/manager/ServicesManager.java
@@ -276,7 +276,7 @@
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;