You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Chris A. Mattmann (JIRA)" <ji...@apache.org> on 2014/07/29 14:59:39 UTC
[jira] [Created] (TIKA-1378) MicrosoftTranslator setClient and
setId NPE
Chris A. Mattmann created TIKA-1378:
---------------------------------------
Summary: MicrosoftTranslator setClient and setId NPE
Key: TIKA-1378
URL: https://issues.apache.org/jira/browse/TIKA-1378
Project: Tika
Issue Type: Bug
Components: translation
Environment: Discovered while using https://github.com/chrismattmann/tika-python and https://github.com/chrismattmann/etllib on DARPA XDATA.
Reporter: Chris A. Mattmann
Assignee: Chris A. Mattmann
Fix For: 1.6
I introduced a bug in MicrosoftTranslator when I was checking for isAvailable in the #setClient and #setId methods that produces and NPE when both aren't set. The Translator still works when auto configured, just not when explicitly configured.
I'll add a patch and unit test. (thanks to [~tpalsulich] for the idea on the unit test).
--
This message was sent by Atlassian JIRA
(v6.2#6252)