return;
}
- // select item
- int index = 0;
+
+ int index = -1;
for (int i=0 ; i < getComboItemList().size() ; i++) {
if (getComboItemList().get(i).equals(optionMap.get(proxyMode))) {
index = i;
break;
}
}
+
+ if (index == -1) {
+ index = 0;
+ proxyMode = (String)getCobmoData(0);
+ }
selectComboItem(index, notifySelect);
if (getItemListComp().isDetailMode()) {
comboBox.setEnabled(false);
@Override
public void setInitialValue(PropertyValue value) {
proxyMode = value.getSubOptionValue(ItemName.NET_PROXY, ITEM_PROXY_MODE);
+ if (proxyMode.isEmpty()) {
+ proxyMode = MODE_AUTO;
+ }
if (proxyMode.equals(MODE_MANUAL)) {
httpProxy = value.getSubOptionValue(ItemName.NET_PROXY, ITEM_HTTP_PROXY);
httpsProxy = value.getSubOptionValue(ItemName.NET_PROXY, ITEM_HTTPS_PROXY);