[
https://issues.apache.org/jira/browse/YARN-505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Junping Du resolved YARN-505.
-----------------------------
Resolution: Won't Fix
> NPE at AsyncDispatcher$GenericEventHandler
> ------------------------------------------
>
> Key: YARN-505
> URL: https://issues.apache.org/jira/browse/YARN-505
> Project: Hadoop YARN
> Issue Type: Improvement
> Components: resourcemanager
> Affects Versions: 3.0.0
> Reporter: Przemyslaw Pretki
> Priority: Minor
>
> Steps to reproduce:
> {code}
> @Test
> public void testAsyncDispatcher()
> {
> AsyncDispatcher dispatcher = new AsyncDispatcher();
> EventHandler handler = dispatcher.getEventHandler();
> handler.handle(null);
> }
> {code}
> Moreover, event taken from *BlockingQueue* will never be *null*, so that it
> seems that the following condition is not necessary
> (AsyncDispatcher.createThread() method):
> {code}
> if (event != null) {
> dispatch(event);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)