Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-12-09 15:51:58 +0000
committerspingel2010-12-09 15:51:58 +0000
commit59bfd0f455ee0a15447a8dc294b3636b32d9ae43 (patch)
tree6916f98f538ebf7c33e98ff5a2160072de72a4af /org.eclipse.mylyn.tasks.core
parent253b09ae4d98ce375753e49d30cc2e8041ffa981 (diff)
downloadorg.eclipse.mylyn.tasks-59bfd0f455ee0a15447a8dc294b3636b32d9ae43.tar.gz
org.eclipse.mylyn.tasks-59bfd0f455ee0a15447a8dc294b3636b32d9ae43.tar.xz
org.eclipse.mylyn.tasks-59bfd0f455ee0a15447a8dc294b3636b32d9ae43.zip
NEW - bug 331233: [patch] TaskRepositoryManager.getConnectorForRepositoryTaskUrl() using from url for comparison
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331233
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java
index f4a02c7c0..7c28b3c16 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java
@@ -255,9 +255,10 @@ public class TaskRepositoryManager implements IRepositoryManager {
public AbstractRepositoryConnector getConnectorForRepositoryTaskUrl(String url) {
Assert.isNotNull(url);
for (AbstractRepositoryConnector connector : getRepositoryConnectors()) {
- if (connector.getRepositoryUrlFromTaskUrl(url) != null) {
+ String repositoryUrl = connector.getRepositoryUrlFromTaskUrl(url);
+ if (repositoryUrl != null) {
for (TaskRepository repository : getRepositories(connector.getConnectorKind())) {
- if (url.startsWith(repository.getRepositoryUrl())) {
+ if (repositoryUrl.startsWith(repository.getRepositoryUrl())) {
return connector;
}
}

Back to the top