Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-11-18 21:14:10 +0000
committerspingel2009-11-18 21:14:10 +0000
commit296190c61aaa84a696143dda896fa23eb1ee0aef (patch)
tree0000de3311b5cafd7da4f460182f7a14c4f03b71 /org.eclipse.mylyn.tasks.bugs
parentc083ac956d969de5de4a591869041e1b54cee962 (diff)
downloadorg.eclipse.mylyn.tasks-296190c61aaa84a696143dda896fa23eb1ee0aef.tar.gz
org.eclipse.mylyn.tasks-296190c61aaa84a696143dda896fa23eb1ee0aef.tar.xz
org.eclipse.mylyn.tasks-296190c61aaa84a696143dda896fa23eb1ee0aef.zip
NEW - bug 294354: IllegalArgumentException when name is not specified for support product
https://bugs.eclipse.org/bugs/show_bug.cgi?id=294354
Diffstat (limited to 'org.eclipse.mylyn.tasks.bugs')
-rw-r--r--org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/Messages.java2
-rw-r--r--org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/SupportProviderManager.java5
2 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/Messages.java b/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/Messages.java
index 6ec3cfd13..6973e9520 100644
--- a/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/Messages.java
+++ b/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/Messages.java
@@ -61,6 +61,8 @@ public class Messages extends NLS {
public static String DefaultTaskContributor_Warning;
+ public static String SupportProviderManager_Product_Unknown;
+
public static String TaskErrorReporter_Create_Task_Error_Message;
public static String TaskErrorReporter_Create_Task_Error_Title;
diff --git a/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/SupportProviderManager.java b/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/SupportProviderManager.java
index a3a2b9ff5..c28490556 100644
--- a/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/SupportProviderManager.java
+++ b/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/SupportProviderManager.java
@@ -210,6 +210,11 @@ public class SupportProviderManager {
}
}
}
+
+ if (item.getName() == null) {
+ item.setName(Messages.SupportProviderManager_Product_Unknown);
+ }
+
return true;
}

Back to the top