diff --git a/grails-app/controllers/au/org/ala/ecodata/AdminController.groovy b/grails-app/controllers/au/org/ala/ecodata/AdminController.groovy index 5432ccbdd..f74b9c07c 100644 --- a/grails-app/controllers/au/org/ala/ecodata/AdminController.groovy +++ b/grails-app/controllers/au/org/ala/ecodata/AdminController.groovy @@ -333,8 +333,8 @@ class AdminController { log.info("${total+1} or ${(total+1)*100/totalSites} % sites updated in db..") } - if (!site.extent) { - log.debug("Ignoring site ${site.siteId} due to no extent") + if (!site.extent?.geometry) { + log.debug("Ignoring site ${site.siteId} due to no extent/geometry") return } // management unit site does not have any projects