Author: rob.stryker(a)jboss.com
Date: 2007-05-03 22:06:11 -0400 (Thu, 03 May 2007)
New Revision: 1999
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/AbstractJBossRuntimeWizardFragment.java
Log:
EXIN-148 - added index = -1 check, best I can do on such little information
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/AbstractJBossRuntimeWizardFragment.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/AbstractJBossRuntimeWizardFragment.java 2007-05-03
18:26:35 UTC (rev 1998)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/AbstractJBossRuntimeWizardFragment.java 2007-05-04
02:06:11 UTC (rev 1999)
@@ -409,7 +409,8 @@
// update config variable
int index = configurations.getTable().getSelectionIndex();
- config = configurations.getTable().getItem(index).getText();
+ if( index != -1 )
+ config = configurations.getTable().getItem(index).getText();
}
updateErrorMessage(SEVERITY_MAJOR);
Show replies by date