Commit 8f9f5874 authored by Matija Obreza's avatar Matija Obreza
Browse files

Genus "" logged

parent 85e789a5
......@@ -19,6 +19,7 @@ package org.genesys2.server.listener.sample;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
import org.apache.commons.lang.StringUtils;
import org.genesys2.server.listener.RunAsAdminListener;
import org.genesys2.server.model.genesys.Taxonomy;
import org.genesys2.server.model.genesys.Taxonomy2;
......@@ -62,6 +63,10 @@ public class TaxonomyUpgrade extends RunAsAdminListener {
List<Taxonomy> oldTaxa = taxonomyService.findAll();
for (Taxonomy t1 : oldTaxa) {
String genus = t1.getGenus();
if (StringUtils.isBlank(genus)) {
_logger.warn("Genus is blank at " + t1);
continue;
}
String species = t1.getSpecies();
String spAuthor = null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment