Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
fixing Nullpointer exception causing elements not to be indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew01ait committed Oct 29, 2015
1 parent 268d1fa commit 85bc8ef
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public String extractFullText(DataObject dob) {
this.log.debug("Error calling tika server on fulltext for " + dob.getPath() + " :" + e.toString());
}
//Tika returns empty String for certain types as Images
if (fulltext == null) {
return null;
}
if (fulltext.equals("")) {
fulltext = null;
}
Expand Down

0 comments on commit 85bc8ef

Please sign in to comment.