Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
future enhancement
-
None
Description
If the umls user name and password are not set properly, now the dictionary-lookup module will throw NullPointerException, which is not very informative. isValidUMLSUser should validate input and raise an informative exception instead.
Caused by: java.lang.NullPointerException
at java.net.URLEncoder.encode(URLEncoder.java:188)
at org.apache.ctakes.dictionary.lookup.ae.UmlsDictionaryLookupAnnotator.isValidUMLSUser(UmlsDictionaryLookupAnnotator.java:87)
at org.apache.ctakes.dictionary.lookup.ae.UmlsDictionaryLookupAnnotator.initialize(UmlsDictionaryLookupAnnotator.java:70)
Many thanks!