Revision 34978 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/SpatialManager.java

View differences:

SpatialManager.java
225 225
			while (iterator.hasNext()) {
226 226
				Feature feature = (Feature) iterator.next();
227 227
				Envelope envelope = feature.getDefaultEnvelope();
228
				fullEnvelope.add(envelope);
228
				if(envelope!=null){
229
					fullEnvelope.add(envelope);
230
				}
229 231
			}
230 232
		} finally {
231 233
			if (iterator != null) {
......
262 264
				}
263 265
			}
264 266
		}
265
    	fullEnvelope = originalEnvelope.getGeometry().getEnvelope();
267
    	if (originalEnvelope!=null){
268
    		fullEnvelope = originalEnvelope.getGeometry().getEnvelope();
269
    	} else {
270
    		fullEnvelope = null;
271
    	}
266 272
		isFullExtentDirty = false;
267 273
	}
268 274

  

Also available in: Unified diff