diff options
author | Martin Spielmann <martin.spielmann@pingunaut.com> | 2017-05-21 22:50:48 +0200 |
---|---|---|
committer | Martin Spielmann <martin.spielmann@pingunaut.com> | 2017-05-21 22:50:48 +0200 |
commit | 51b9b7f9016899bbf8a39f6bc33a916a3d2b3838 (patch) | |
tree | 1c4d4a2e8183a9337569b3c2d789076c7f094d0c | |
parent | 337443cc11d09b54de167a5e677816152d6969fb (diff) | |
download | gitblit-51b9b7f9016899bbf8a39f6bc33a916a3d2b3838.tar.gz gitblit-51b9b7f9016899bbf8a39f6bc33a916a3d2b3838.zip |
Fix nullpointer exception with unsupported URL protocol #1237
-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 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; |