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:51:20 UTC

[jira] [Comment Edited] (NET-539) NPE Threader.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 edited comment on NET-539 at 4/15/14 5:50 PM:
---------------------------------------------------

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, and to agree with the Javadoc.


was (Author: sebb@apache.org):
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 Threader.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)