Skip to content

Commit

Permalink
TIKA-1060: Degrade gracefully when juniversalchardet not present
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tika/trunk@1436209 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jukka committed Jan 21, 2013
1 parent 527e4de commit 03f7625
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public Charset detect(InputStream input, Metadata metadata)
return listener.dataEnd();
} catch (IOException e) {
throw e;
} catch (Exception e) { // if juniversalchardet is not available
return null;
} catch (LinkageError e) {
return null; // juniversalchardet is not available
} finally {
input.reset();
}
Expand Down

0 comments on commit 03f7625

Please sign in to comment.