From: Joseph S. <acr...@io...> - 2003-02-04 16:00:05
|
Joe Shelby wrote: > 2) in addition to addItem() (which, using the List interface does an > append), there should be an insertItem that adds it to the front, > following normal RSS for blog standards. Right now that can be done by > doing "getItems().add(0, new Item(...))", but to me that's risky. And a risk involved just happened to me. currently, the internal List is created lazily, and the result is that if you call getList().add(...) before a single item is added through the Channel's own methods, you get a NullPointerException. Joe -- ---------------------------------------------------------------------- Joseph Shelby mailto:acr...@io... 45533 Stablemates Ct. http://www.io.com/~acroyear Sterling, VA 20164 (703) 404-0314 | 247-7868 Software Engineer, ISX Corporation, Arlington, VA "The people of England will permit anything...except cruelty to horses and a rise in the price of beer." -- Return of the Musketteers (1989) ---------------------------------------------------------------------- |