Revision 46746

View differences:

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/DefaultFeatureType.java
204 204

  
205 205
        this.hasEvaluators = other.hasEvaluators;
206 206
        this.hasEmulators = other.hasEmulators;
207
        this.rules = (DefaultFeatureRules) other.rules.getCopy();
207
        this.rules = (DefaultFeatureRules) ((other.rules==null)? null:other.rules.getCopy());
208 208
        this.hasOID = other.hasOID;
209 209
        this.id = other.id; // XXX ???? copiar o no esto????
210 210
        this.internalID = other.internalID;
......
1221 1221
        state.set("tags", tags);
1222 1222
        state.set("checkFeaturesAtFinishEditing",this.checkFeaturesAtFinishEditing);
1223 1223
        state.set("checkFeaturesAtInsert",this.checkFeaturesAtInsert);
1224
        state.set("rules", this.rules.iterator());
1224
        state.set("rules", (this.rules==null)? null:this.rules.iterator());
1225 1225
    }
1226 1226

  
1227 1227
    private static final String FEATTYPE_PERSISTENCE_DEFINITION_NAME = "FeatureType";

Also available in: Unified diff