You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2014/04/15 19:47:20 UTC

[jira] [Commented] (NET-539) NPE in Threader.pruneEmptyContainers when Thread.thread invoked with empty list or with null array

    [ https://issues.apache.org/jira/browse/NET-539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13969805#comment-13969805 ] 

Sebb commented on NET-539:
--------------------------

The original code returned null if thread(Threadable[] messages) was called with a null array.
It now throws NPE.
Revert to returning null for consistency.

> NPE in Threader.pruneEmptyContainers when Thread.thread invoked with empty list or with null array
> --------------------------------------------------------------------------------------------------
>
>                 Key: NET-539
>                 URL: https://issues.apache.org/jira/browse/NET-539
>             Project: Commons Net
>          Issue Type: Bug
>          Components: NNTP
>            Reporter: Sebb
>            Priority: Minor
>
> Threader.pruneEmptyContainers fails with NPE if Thread.thread is invoked with an empty list
> The code allows for a null list, but not an empty list.



--
This message was sent by Atlassian JIRA
(v6.2#6252)