Revision 27292 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/FeatureManager.java

View differences:

FeatureManager.java
74 74

  
75 75
    public Feature delete(FeatureReference id) {
76 76
        deleted.add(id);
77
        int num = ((Integer)added.remove(id)).intValue();
77
		Integer num = (Integer) added.remove(id);
78 78
        Feature feature=null;
79
        if (num==-1) {
79
        if (num == null || num.intValue() == -1) {
80 80
        	feature = (Feature)modifiedFromOriginal.remove(id);
81 81
		}else{
82
			feature=(Feature)expansionAdapter.getObject(num);
82
			feature = (Feature) expansionAdapter.getObject(num.intValue());
83 83
		}
84 84
        deltaSize--;
85 85
        return feature;

Also available in: Unified diff