Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-02-16 20:57:18 -0500
committerrelves2007-02-16 20:57:18 -0500
commit3bcbb485cd0a3f30f7a7988f624da34620df5888 (patch)
treed1acaa3f8657b2d975dc5ea0f826b0da4d2c3f42
parent1c572533cfd01904a380ca71a4bf5509509b58f8 (diff)
downloadorg.eclipse.mylyn.tasks-3bcbb485cd0a3f30f7a7988f624da34620df5888.tar.gz
org.eclipse.mylyn.tasks-3bcbb485cd0a3f30f7a7988f624da34620df5888.tar.xz
org.eclipse.mylyn.tasks-3bcbb485cd0a3f30f7a7988f624da34620df5888.zip
NEW - bug 166555: Bugs with QA contacts cannot be updated when using "local users"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=166555
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
index b23d42c50..314b6bccf 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
@@ -125,17 +125,16 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
// ignore
}
});
-
-
- boolean shortLogin = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.REPOSITORY_SETTING_SHORT_LOGIN));
-
+
Label shortLoginLabel = new Label(parent, SWT.NONE);
- shortLoginLabel.setText(LABEL_SHORT_LOGINS);
- cleanQAContact = new Button(parent, SWT.CHECK | SWT.LEFT);
- cleanQAContact.setSelection(shortLogin);
-
-
-
+ shortLoginLabel.setText(LABEL_SHORT_LOGINS);
+ cleanQAContact = new Button(parent, SWT.CHECK | SWT.LEFT);
+ if (repository != null) {
+ boolean shortLogin = Boolean.parseBoolean(repository
+ .getProperty(IBugzillaConstants.REPOSITORY_SETTING_SHORT_LOGIN));
+ cleanQAContact.setSelection(shortLogin);
+ }
+
}
public void setBugzillaVersion(String version) {
@@ -168,9 +167,10 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
@Override
public void updateProperties(TaskRepository repository) {
- repository.setProperty(IBugzillaConstants.REPOSITORY_SETTING_SHORT_LOGIN, String.valueOf(cleanQAContact.getSelection()));
+ repository.setProperty(IBugzillaConstants.REPOSITORY_SETTING_SHORT_LOGIN, String.valueOf(cleanQAContact
+ .getSelection()));
}
-
+
@Override
public boolean isPageComplete() {
return super.isPageComplete();

Back to the top