Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1378

MicrosoftTranslator setClient and setId NPE

    XMLWordPrintableJSON

    Details

      Description

      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 Tyler Bui-Palsulich for the idea on the unit test).

        Attachments

        1. TIKA-1378.Mattmann.072914.patch.txt
          4 kB
          Chris A. Mattmann

          Activity

            People

            • Assignee:
              chrismattmann Chris A. Mattmann
              Reporter:
              chrismattmann Chris A. Mattmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: