uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry Cwiklik (JIRA)" <uima-...@incubator.apache.org>
Subject [jira] Closed: (UIMA-1727) CPM doesnt validate registered CallbackListener references
Date Mon, 18 Jan 2010 21:18:55 GMT

     [ https://issues.apache.org/jira/browse/UIMA-1727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jerry Cwiklik closed UIMA-1727.
-------------------------------

    Resolution: Fixed

Added a check for null to prevent adding bad references to the list of callback listeners.
Also, before calling the registered listener code now checks for null reference.

> CPM doesnt validate registered CallbackListener references 
> -----------------------------------------------------------
>
>                 Key: UIMA-1727
>                 URL: https://issues.apache.org/jira/browse/UIMA-1727
>             Project: UIMA
>          Issue Type: Bug
>          Components: Collection Processing
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>
> The CPM uses a list of registered listeners to notify an application of certain events.
The application registers listeners with the CPM before it starts the run. Apparently, the
CPM doesnt validate a listener reference provided by the application and blindly adds it a
list. If the reference is null, the NPE is thrown when trying to send notifications. Fix the
code to validate listener reference to prevent adding null references.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message