You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2008/02/21 16:47:19 UTC

[jira] Commented: (NET-185) Possible NPE in Threader.java

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

Henri Yandell commented on NET-185:
-----------------------------------

Why closed as "Later" and not left open without a fix version?

Once something is closed I'm not convinced people will notice the issues again.

> Possible NPE in Threader.java
> -----------------------------
>
>                 Key: NET-185
>                 URL: https://issues.apache.org/jira/browse/NET-185
>             Project: Commons Net
>          Issue Type: Bug
>         Environment: Fortify
>            Reporter: Henri Yandell
>             Fix For: 1.5
>
>
> In Threader.gatherSubjects, it appears to be possible for tail.next = c.child; to be null [line 356]:
> 	349	 if (old.threadable == null && c.threadable == null) {
> 	350		// both dummies - merge them
> 	351		ThreadContainer tail;
> 	352		for (tail = old.child;
> 	353		tail != null && tail.next != null;
> 	354		tail = tail.next);
> 	355	
> 	356		tail.next = c.child;
> It also seems kind of pointless, given that the subsequent line immediately resets tail to c.child. Perhaps the ; is not intended there?

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