Skip to content

Commit

Permalink
wrong default in jboss dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
philippn committed Nov 1, 2012
1 parent 8eec13c commit a1794cc
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -55,7 +55,10 @@ public void setConfigurableObject(IConfigurableObject obj) {
public void performFinish() throws CoreException {
String ver = null;
// Beware of NPEs because versionCombo may not be initialized if finish is pressed directly
if ((versionCombo == null) || (versionCombo.getSelectionIndex() == 0)) {
if (versionCombo == null) {
// Default to 7.x
ver = JBossDialect.VERSION_7;
} else if (versionCombo.getSelectionIndex() == 0) {
ver = JBossDialect.VERSION_4;
} else if (versionCombo.getSelectionIndex() == 1) {
ver = JBossDialect.VERSION_5;
Expand Down

0 comments on commit a1794cc

Please sign in to comment.