Revision 47080 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DALFile.java

View differences:

DALFile.java
209 209
        store.setFeatureTypes(theTypes, ft);
210 210
    }
211 211

  
212
    public List<FeatureType> getFeatureTypes() throws DataException {
213
        List<FeatureType> theTypes = new ArrayList<>();
214
        for (FeatureType type : this.featureTypes) {
215
            theTypes.add(type);
216
        }
217
        if( theTypes.isEmpty() ) {
218
            return null;
219
        }
220
        return theTypes;
221
    }
222

  
212 223
    @Override
213 224
    public void saveToState(PersistentState state) throws PersistenceException {
214 225
        state.set("defaultFeatureType", defaultFeatureTypeId);

Also available in: Unified diff