On Thu, 2006-01-12 at 21:45 +0100, Mark Wielaard wrote: > Hi, > > The JFileChooser was giving NullPointerExceptions for me when resizing > the window or when viewing a directory with few items. What happens is > that the BasicDirectoryModel will give null as element after the end of > list. The MetalFileChooserUI FileRenderer would try to get a name and > icon for this "null" file which fails. This patch makes sure an empty > name and no icon are rendered. > > 2005-01-12 Mark Wielaard <[EMAIL PROTECTED]> > > * javax/swing/plaf/metal/MetalFileChooserUI.java > (FileRenderer.getListCellRendererComponent): Set empty name and null > icon when File is null. > > Is this an acceptable way to fix this?
Looks fine. Thanks for fixing this! Lillian _______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches