DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20746>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20746 Incomplete newsgroup list ------- Additional Comments From [EMAIL PROTECTED] 2003-06-14 23:26 ------- I have looked at the source code and found the problem. When asked for a list of newsgroups, the list of directories in the nntp->groups folder is enumerated and for each one an NNTPGroup object is returned. The problem occurs when the directory listing contains groups that are not in the config.xml file. The method getGroup(String) in NNTPRepositoryImpl returns a null in this instance and this is added to the list of newsgroups to send back to the client. The null reference then gets pulled out of the list and a method call is attempted, producing a NullPointerException. Solutions: 1) Make sure that the groups directory and config.xml match 2) Check for null before adding the NNTPGroup to the list 3) Don't bother checking the file system and instead rely on the config.xml No.3 is the better option IMHO. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
