add check for NP in cdm light export
authorKatja Luther <k.luther@bgbm.org>
Wed, 5 Jul 2017 08:54:23 +0000 (10:54 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 6 Jul 2017 13:42:57 +0000 (15:42 +0200)
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/cdmLight/CdmLightClassificationExport.java

index a7e97536fa5fbc33b8ad41afb66b21d8823eb64a..7dbb1fac58ccc5556c46844f681beb84e65e9656 100755 (executable)
@@ -164,6 +164,7 @@ public class CdmLightClassificationExport
         if (taxonNode == null){
             state.getResult().addError ("The taxonNode was null.", "handleTaxon");
             state.getResult().setState(ExportResultState.INCOMPLETE_WITH_ERROR);
+            return;
         }
         if (taxonNode.getTaxon() == null){
             state.getResult().addError ("There was a taxon node without a taxon: " + taxonNode.getUuid(), "handleTaxon");