Revision 45100 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/searchpanel/SearchConditionFieldController.java
SearchConditionFieldController.java | ||
---|---|---|
45 | 45 |
import org.gvsig.tools.dataTypes.Coercion; |
46 | 46 |
import org.gvsig.tools.dataTypes.CoercionException; |
47 | 47 |
import org.gvsig.tools.dataTypes.DataTypeUtils; |
48 |
import org.gvsig.tools.dispose.DisposeUtils; |
|
48 | 49 |
import org.gvsig.tools.dynobject.DynField; |
49 | 50 |
import org.gvsig.tools.exception.BaseException; |
50 | 51 |
import org.gvsig.tools.i18n.I18nManager; |
... | ... | |
394 | 395 |
Thread th = new Thread(new Runnable() { |
395 | 396 |
@Override |
396 | 397 |
public void run() { |
398 |
FeatureSet set = null; |
|
397 | 399 |
try { |
398 |
FeatureSet set = theStore.getFeatureSet(query);
|
|
400 |
set = theStore.getFeatureSet(query); |
|
399 | 401 |
set.accept(new Visitor() { |
400 | 402 |
@Override |
401 | 403 |
public void visit(Object o) throws VisitCanceledException, BaseException { |
... | ... | |
415 | 417 |
|
416 | 418 |
} catch (Exception ex) { |
417 | 419 |
LOGGER.warn("Can't update list of values of '" + field.getLabel() + "'.", ex); |
420 |
} finally { |
|
421 |
DisposeUtils.disposeQuietly(set); |
|
418 | 422 |
} |
419 | 423 |
List<LabeledValue> elements = new ArrayList<>(); |
420 | 424 |
if (!values.isEmpty()) { |
Also available in: Unified diff