Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-08-22 21:16:15 -0400
committerspingel2008-08-22 21:16:15 -0400
commit7be67c4d56d09b207239b71a1f45acc19fc1b0ac (patch)
treef0cf54bc65a86db1fd0daf7eef1d291dd3f92dd3
parente2bf27b59ee1e7e10f890162d766fe76cd36892a (diff)
downloadorg.eclipse.mylyn.tasks-7be67c4d56d09b207239b71a1f45acc19fc1b0ac.tar.gz
org.eclipse.mylyn.tasks-7be67c4d56d09b207239b71a1f45acc19fc1b0ac.tar.xz
org.eclipse.mylyn.tasks-7be67c4d56d09b207239b71a1f45acc19fc1b0ac.zip
NEW - bug 216055: false detection of jira hyperlinks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=216055
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java
index 0d9079698..017564846 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TasksUiUtil.java
@@ -337,10 +337,16 @@ public class TasksUiUtil {
.getConnectorForRepositoryTaskUrl(url);
if (connector != null) {
String repositoryUrl = connector.getRepositoryUrlFromTaskUrl(url);
- String id = connector.getTaskIdFromTaskUrl(url);
- TaskRepository repository = TasksUi.getRepositoryManager().getRepository(connector.getConnectorKind(),
- repositoryUrl);
- opened = openTask(repository, id);
+ if (repositoryUrl != null) {
+ String id = connector.getTaskIdFromTaskUrl(url);
+ if (id != null) {
+ TaskRepository repository = TasksUi.getRepositoryManager().getRepository(
+ connector.getConnectorKind(), repositoryUrl);
+ if (repository != null) {
+ opened = openTask(repository, id);
+ }
+ }
+ }
}
if (!opened) {
openUrl(url, 0);

Back to the top