Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2015-09-04 22:54:24 +0000
committerGerrit Code Review @ Eclipse.org2015-09-09 18:44:21 +0000
commit95141fe232ccd52b7eff54433996996d4fbcf13b (patch)
tree730ebbcff53c109184f7a1a660189b802a2baf3f /org.eclipse.mylyn.tasks.ui
parentcbd98a2f79e98d0bccff707a7536eeedd376fa3f (diff)
downloadorg.eclipse.mylyn.tasks-95141fe232ccd52b7eff54433996996d4fbcf13b.tar.gz
org.eclipse.mylyn.tasks-95141fe232ccd52b7eff54433996996d4fbcf13b.tar.xz
org.eclipse.mylyn.tasks-95141fe232ccd52b7eff54433996996d4fbcf13b.zip
476680: AbstractRepositorySettingsPage doesn't udpate brand when
specified brand is null Change-Id: I2f003ceba1ea9c5b46adabe301dbd8302eb80fc9 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=476680 Signed-off-by: Jaxsun McCarthy Huggan <jaxsunm@gmail.com>
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java
index c8b43b67d..ff541ed71 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java
@@ -36,6 +36,8 @@ import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
+import com.google.common.base.Strings;
+
/**
* @author Mik Kersten
* @author Steffen Pingel
@@ -149,8 +151,8 @@ public class NewRepositoryWizard extends Wizard implements INewWizard {
settingsPage.setWizard(this);
lastConnectorKind = connector.getConnectorKind();
}
- if (settingsPage instanceof AbstractRepositorySettingsPage && brand != null) {
- ((AbstractRepositorySettingsPage) settingsPage).setBrand(brand);
+ if (settingsPage instanceof AbstractRepositorySettingsPage) {
+ ((AbstractRepositorySettingsPage) settingsPage).setBrand(Strings.nullToEmpty(brand));
}
}

Back to the top