On 2 April 2014 21:55, Elliot Shank <[email protected]> wrote: > Using v3.3, I'm getting problems like
Are you sure you are using 3.3? > Exception in thread "main" java.lang.NullPointerException > at > org.apache.commons.net.nntp.Threader.gatherSubjects(Threader.java:342) > at org.apache.commons.net.nntp.Threader.thread(Threader.java:81) > at org.apache.commons.net.nntp.Threader.thread(Threader.java:47) The above line numbers don't agree with the source for 3.3 > when a particular thread branch has no actual messages in it. > > What happens is that the graph returned by findRootSet() at line 71 will > look something like > > ... > <ThreadContainer A with Threadable> > ... > <ThreadContainer B without Threadable> > <ThreadContainer ... without Threadable> > <ThreadContainer ... without Threadable> > <ThreadContainer ... without Threadable> > <ThreadContainer ... without Threadable> > <ThreadContainer ... without Threadable> > <ThreadContainer ... without Threadable> > <ThreadContainer C with Threadable> > ... > ... > > And, after pruneEmptyContainers() has had its way with things on line 75, > the graph will be > > ... > <ThreadContainer A with Threadable> > ... > <ThreadContainer B without Threadable> > <ThreadContainer C with Threadable> > ... > ... > > when it should be > > ... > <ThreadContainer A with Threadable> > ... > <ThreadContainer C with Threadable> > ... > ... > > I.e., ThreadContainer B should be eliminated entirely. > > As it is, with ThreadContainer B present, but not containing any children or > a Threadable, gatherSubjects() chokes. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
