[
https://issues.apache.org/jira/browse/CTAKES-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813272#comment-13813272
]
ASF subversion and git services commented on CTAKES-253:
--------------------------------------------------------
Commit 1538764 from [email protected] in branch 'ctakes/trunk'
[ https://svn.apache.org/r1538764 ]
CTAKES-253 - Didn't need an additional .length()>0 in NumTokenAdapter check
since Strings.isNullOrEmpty() does it already
> YTEX ctakes patches port
> ------------------------
>
> Key: CTAKES-253
> URL: https://issues.apache.org/jira/browse/CTAKES-253
> Project: cTAKES
> Issue Type: Bug
> Components: ctakes-core
> Affects Versions: 3.1
> Environment: platform independent
> Reporter: vijay
> Assignee: Pei Chen
> Fix For: 3.1.1
>
> Attachments: jira-ctakes-core.zip
>
>
> This patch contains a variety of hardening fixes from the ytex distribution
> for ctakes (originally developed for ctakes 2.5, but the bugs remain in
> ctakes 3.2).
> *
> ctakes-context-tokenizer\src\main\java\org\apache\ctakes\contexttokenizer\ae\ContextDependentTokenizerAnnotator.java
> add null check: changed to avoid NPE in case BaseToken is null. Also ignore
> newline tokens (they should be treated as whitespace).
> *
> ctakes-core\src\main\java\org\apache\ctakes\core\fsm\adapters\NumberTokenAdapter.java
> add null check: ignore empty numbertokens
> * ctakes-core\src\main\java\org\apache\ctakes\core\fsm\machine\DateFSM.java
> Modified to include years in dates
--
This message was sent by Atlassian JIRA
(v6.1#6144)