You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org> on 2010/01/18 22:18:55 UTC

[jira] Closed: (UIMA-1727) CPM doesnt validate registered CallbackListener references

     [ 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.