Project

General

Profile

Revision 72aa71d5

ID72aa71d581d16bbabd642b3ba4c14566abded533
Parent b746bb33
Child 9ba80ffb

Added by Andreas Kohlbecker over 7 years ago

fixing #4172 (NPE in ext/edit/mapServiceParameters/taxonOccurrencesFor/{uuid})

View differences:

cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/geo/EditGeoService.java
228 228
                    if (((FieldUnit) original).getGatheringEvent() != null) {
229 229
                        Point point = ((FieldUnit) original).getGatheringEvent().getExactLocation();
230 230
                        if (point != null) {
231
                            // points with no longitude or latitude should not exist
232
                            // see  #4173 ([Rule] Longitude and Latitude in Point must not be null)
233
                            if (point.getLatitude() == null || point.getLongitude() == null){
234
                                continue;
235
                            }
231 236
                            // FIXME: remove next statement after
232 237
                            // DerivedUnitFacade or ABCD import is fixed
233
                            if (point.getLatitude() == 0.0 && point.getLongitude() == 0.0) {
238
                            //
239
                            if(point.getLatitude() == 0.0 || point.getLongitude() == 0.0) {
234 240
                                continue;
235 241
                            }
236 242
                            derivedUnitPoints.add(point);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)