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=5091>. 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=5091 CastorRegistryService.addEntry method fails ------- Additional Comments From [EMAIL PROTECTED] 2001-11-26 12:23 ------- Hmmm... Not sure why the fragment reference would be NULL here unless you don't have... services.Registry.default.Portlet=local-portlets ... defined in JR.props. This is where all new entries go. If you do, then I'm puzzled and looks like we've stumbled upon another problem. As far as the original problem is concerned, call to [registry.getEntry(getName ())] throws an exception if entry is not found and call to [this.getEntry (regName, entry.getName())] just returns null with logging a warning. I decided to utilize the second one for just that reason. I got the impression that [this.getEntry] was created just to handle this type of situation where you'd rather get a null return value rather than exception. The objective here is to add a new entry if it does not exist or update an existing one. I suppose that I could leave the original code intact and just add some exception handling. Do you want me to redo the patch that way? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
