Revision 16396 trunk/libraries/libTopology/src/org/gvsig/fmap/core/FeatureUtil.java

View differences:

FeatureUtil.java
244 244
		}
245 245
		
246 246
		Value[] attributes = feature.getAttributes();
247
		solution.putProperty("numberOfAttributes", attributes.length);
248
		for(int i = 0; i < attributes.length; i++){
249
			Value value = attributes[i];
250
			int type = value.getSQLType();
251
			Object objectValue = FeatureUtil.getJavaTypeFromValue(value, type);
252
			solution.putProperty("sqlType"+i, type);
253
			solution.putProperty("value"+i, objectValue);
254
			
247
		if(attributes != null){
248
			solution.putProperty("numberOfAttributes", attributes.length);
249
			for(int i = 0; i < attributes.length; i++){
250
				Value value = attributes[i];
251
				int type = value.getSQLType();
252
				Object objectValue = FeatureUtil.getJavaTypeFromValue(value, type);
253
				solution.putProperty("sqlType"+i, type);
254
				solution.putProperty("value"+i, objectValue);
255
				
256
			}
255 257
		}
256 258
		return solution;
257 259
	}

Also available in: Unified diff