Skip to content

Commit

Permalink
fix the review data of the step 2 and fixed a bug with filter in data…
Browse files Browse the repository at this point in the history
… validation
  • Loading branch information
stevensotelo committed Jun 26, 2015
1 parent fcc9578 commit d094f55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,10 @@ else if(p.getTypePolicy()==TypePolicy.TNRS_QUERY)
tnrs=RepositoryTNRS.get(name, true);
if(tnrs==null)
tnrs=RepositoryTNRS.get(name, false);
if(tnrs==null)
if(tnrs==null){
review_data +="||||||||||||||||||||||||||||||||";
throw new Exception("Taxon not found in TNRS: " + name);
}
for(TNRS t:tnrs)
{
if(t.finalTaxon!=null && !t.finalTaxon.equals(""))
Expand All @@ -336,8 +338,10 @@ else if(p.getTypePolicy()==TypePolicy.TAXONDSTAND_QUERY)
{
name=generateName(entity," ");
taxonstand=RepositoryTaxonstand.get(name);
if(taxonstand==null)
if(taxonstand==null){
review_data +="|||||||||||||||||";
throw new Exception("Taxon not found in taxonstand: " + name);
}
else
{
review_data+=taxonstand.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void listCrossCheck(String condition) throws SQLException{
"comments, " +
"grin_final_taxon " +
"From " + super.getTable() + " " +
condition != null && !condition.equals("") ? "Where " + condition : "");
(condition != null && !condition.equals("") ? "Where " + condition : ""));
}

/**
Expand Down

0 comments on commit d094f55

Please sign in to comment.