if (dataValueForFeature != null && dataValueForFeature.size() > 1){
return null;
}
- Iterator<DescriptionElementDto> it = dataValueForFeature.iterator();
- if(it.hasNext() ){
- DescriptionElementDto dto = it.next();
- if(dto instanceof QuantitativeDataDto){
- quantitativeData = (QuantitativeDataDto) dto;
- }
+
+ DescriptionElementDto dto = null;
+ if (dataValueForFeature != null){
+ Iterator<DescriptionElementDto> it = dataValueForFeature.iterator();
+ if(it.hasNext() ){
+ dto = it.next();
+ }
}
+ if(dto instanceof QuantitativeDataDto){
+ quantitativeData = (QuantitativeDataDto) dto;
+ }
//create new Quantitative Data
if (quantitativeData == null) {
quantitativeData = ((RowWrapperDTO) rowObject).addQuantitativeData(feature);