Skip to content

Commit

Permalink
NPE search fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hplahar committed Jan 9, 2015
1 parent 2240faa commit bb65d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jbei/ice/lib/search/HibernateSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public SearchResults executeSearchNoTerms(Account account, SearchQuery searchQue

// check if there is also a blast search
final HashMap<String, SearchResult> blastResults;
if (searchQuery.getBlastQuery() != null) {
if (searchQuery.getBlastQuery() != null && searchQuery.getBlastQuery().getSequence() != null) {
try {
blastResults = BlastPlus.runBlast(account, searchQuery.getBlastQuery());

Expand Down Expand Up @@ -363,7 +363,7 @@ public SearchResults executeSearch(Account account, HashMap<String, BooleanClaus

// check if there is also a blast search
final HashMap<String, SearchResult> blastResults;
if (searchQuery.getBlastQuery() != null) {
if (searchQuery.getBlastQuery() != null && searchQuery.getBlastQuery().getSequence() != null) {
try {
blastResults = BlastPlus.runBlast(account, searchQuery.getBlastQuery());

Expand Down

0 comments on commit bb65d94

Please sign in to comment.