Revision 20626 trunk/libraries/libFMap_dataFile/src/org/gvsig/data/datastores/vectorial/file/dbf/DBFFeature.java

View differences:

DBFFeature.java
63 63

  
64 64
	protected void loadValue(IFeatureAttributeDescriptor descriptor)  throws ReadException, IsNotFeatureSettingException{
65 65
		int i=((AttributeDescriptor)descriptor).originalPosition();
66
		if (store.dbf.getFieldCount()<=i)
67
			return;
68
		String value=store.dbf.getStringFieldValue((int) this.featureIndex, i);
66
		String value = null;
67
		try{
68
			if (store.dbf.getFieldCount()<=i)
69
				return;
70
			value=store.dbf.getStringFieldValue((int) this.featureIndex, i);
71
		} catch (DataException e){
72
			throw new ReadException(this.store.getName(),e);
73
		}
69 74
		value=value.trim();
70 75
		String fieldType=descriptor.getDataType();
71 76
		if (fieldType.equals(IFeatureAttributeDescriptor.TYPE_STRING)){

Also available in: Unified diff