Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKetan Padegaonkar2010-11-29 10:46:41 +0000
committerKetan Padegaonkar2010-11-29 10:46:41 +0000
commitfb94d4855e17514a66ce576d96599f41a1e766f4 (patch)
treebd6f1d5913f841b6057e1f6d00f036be348c9c37
parent9d28bc0247ca7c1ce11a796cbac752169287f5fa (diff)
downloadorg.eclipse.swtbot-fb94d4855e17514a66ce576d96599f41a1e766f4.tar.gz
org.eclipse.swtbot-fb94d4855e17514a66ce576d96599f41a1e766f4.tar.xz
org.eclipse.swtbot-fb94d4855e17514a66ce576d96599f41a1e766f4.zip
Fix an issue with the SWTBot wizard page breaking because the target platform did not have a default product.
-rw-r--r--org.eclipse.swtbot.eclipse.ui/src/org/eclipse/swtbot/eclipse/ui/wizards/NewPluginProjectWizardPage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.swtbot.eclipse.ui/src/org/eclipse/swtbot/eclipse/ui/wizards/NewPluginProjectWizardPage.java b/org.eclipse.swtbot.eclipse.ui/src/org/eclipse/swtbot/eclipse/ui/wizards/NewPluginProjectWizardPage.java
index ed2a961c..a28eb529 100644
--- a/org.eclipse.swtbot.eclipse.ui/src/org/eclipse/swtbot/eclipse/ui/wizards/NewPluginProjectWizardPage.java
+++ b/org.eclipse.swtbot.eclipse.ui/src/org/eclipse/swtbot/eclipse/ui/wizards/NewPluginProjectWizardPage.java
@@ -158,7 +158,7 @@ public class NewPluginProjectWizardPage extends WizardPage implements WizardPage
productId = new Combo(group, SWT.DROP_DOWN);
productId.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
productId.setItems(TargetPlatform.getProducts());
- productId.setText(TargetPlatform.getDefaultProduct());
+ productId.setText(TargetPlatform.getDefaultProduct() == null ? "" : TargetPlatform.getDefaultProduct());
applicationIdButton = new Button(group, SWT.RADIO);
applicationIdButton.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, false));

Back to the top