Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-07-11 20:00:17 -0400
committermkersten2007-07-11 20:00:17 -0400
commit8e3d71dbddcf306db74743a4c3aee4e35a68a89e (patch)
tree68e8b4b7e598778fff055fb977e0def8e687f7e2
parent02b70f27675f1117431df052e733020df7ae0222 (diff)
downloadorg.eclipse.mylyn.tasks-e_3_2_m_2_0.tar.gz
org.eclipse.mylyn.tasks-e_3_2_m_2_0.tar.xz
org.eclipse.mylyn.tasks-e_3_2_m_2_0.zip
196244: NPE on eclipse 3.2 when creating new repository taske_3_2_m_2_0
https://bugs.eclipse.org/bugs/show_bug.cgi?id=196244
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
index 90cb2c7e3..240dca7b6 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
@@ -506,7 +506,14 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
AbstractRepositoryConnectorUi connectorUi = TasksUiPlugin.getConnectorUi(repository.getConnectorKind());
String kindLabel = "";
if (connectorUi != null) {
- kindLabel = connectorUi.getTaskKindLabel(repositoryTask);
+
+ if (repositoryTask != null && taskData != null && !taskData.isNew()) {
+ kindLabel = connectorUi.getTaskKindLabel(repositoryTask);
+ } else {
+ if (taskData != null) {
+ kindLabel = connectorUi.getTaskKindLabel(taskData);
+ }
+ }
}
String idLabel = "";

Back to the top