Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2011-02-14 20:39:38 +0000
committerfbecker2011-02-14 20:39:38 +0000
commit78ffa1c4fa2df4758a114c7959e2c3de019bc0db (patch)
treec5dfdb7f7b70510f79161d3f1d6fb5d96543802d /org.eclipse.mylyn.bugzilla.ui
parent9fc654be9862190d1389cdd3014d5e2378fd24ea (diff)
downloadorg.eclipse.mylyn.tasks-78ffa1c4fa2df4758a114c7959e2c3de019bc0db.tar.gz
org.eclipse.mylyn.tasks-78ffa1c4fa2df4758a114c7959e2c3de019bc0db.tar.xz
org.eclipse.mylyn.tasks-78ffa1c4fa2df4758a114c7959e2c3de019bc0db.zip
ASSIGNED - bug 336423: anonymous bug reporting
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336423
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java10
1 files changed, 6 insertions, 4 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 e8a7fe8f3..34ea27c12 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
@@ -462,8 +462,10 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
AuthenticationCredentials proxyAuth = repository.getCredentials(AuthenticationType.PROXY);
boolean changed = repository.getCharacterEncoding() != getCharacterEncoding();
changed = changed || repository.getSavePassword(AuthenticationType.REPOSITORY) != getSavePassword();
- changed = changed || repositoryAuth.getUserName().compareTo(getUserName()) != 0;
- changed = changed || repositoryAuth.getPassword().compareTo(getPassword()) != 0;
+ if (repositoryAuth != null) {
+ changed = changed || repositoryAuth.getUserName().compareTo(getUserName()) != 0;
+ changed = changed || repositoryAuth.getPassword().compareTo(getPassword()) != 0;
+ }
changed = changed
|| Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_USE_XMLRPC)) != useXMLRPCstatusTransitions.getSelection();
changed = changed
@@ -509,10 +511,10 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
*/
private boolean equals(String s1, String s2) {
if (s1 == null) {
- s1 = "";
+ s1 = ""; //$NON-NLS-1$
}
if (s2 == null) {
- s2 = "";
+ s2 = ""; //$NON-NLS-1$
}
return s1.equals(s2);
}

Back to the top