Revision 46714 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/editing/memory/FeatureManager.java
FeatureManager.java | ||
---|---|---|
194 | 194 |
|
195 | 195 |
public int update(EditableFeature feature, Feature oldFeature) { |
196 | 196 |
FeatureReference id = feature.getReference(); |
197 |
if(id == null){ |
|
198 |
throw new IllegalArgumentException("Can't update feature without references support."); |
|
199 |
} |
|
197 | 200 |
if(!original.containsKey(id)){ |
198 | 201 |
int n = expansionAdapter.addObject(oldFeature); |
199 | 202 |
original.put(id, n); |
Also available in: Unified diff