Skip to content

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Dietze committed Dec 3, 2015
1 parent d4e7898 commit 1ccd50f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public String getNcbiTaxonId() {
}

public void setNcbiTaxonId(String ncbiTaxonId) {
if (ncbiTaxonId.contains("284812"))
if (ncbiTaxonId != null && ncbiTaxonId.contains("284812"))
log.info("Where is this happening");
if (ncbiTaxonId != null && ncbiTaxonId.startsWith("NCBITaxon"))
this.ncbiTaxonId = ncbiTaxonId.substring(4).toLowerCase();
Expand Down

0 comments on commit 1ccd50f

Please sign in to comment.