christmo / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

DSourceListMail icon image resource paths wrong resulting in NullPointerExceptions #142

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. java -cp
mac_widgets-0.9.5.jar:/Users/nezda/.m2/repository/com/jgoodies/forms/1.2.1/forms
-1.2.1.jar
com.explodingpixels.macwidgets.DSourceListMail

Relying on relative resource path, but uses absolute path (i.e., with
leading ./).  Trivial fix is to change
new ImageIcon(DSourceListITunes.class.getResource("./icons/mailbox.png"));
to 
new ImageIcon(DSourceListITunes.class.getResource("icons/mailbox.png"));

Patch attached.

Original issue reported on code.google.com by lne...@gmail.com on 26 Nov 2009 at 7:02

Attachments:

GoogleCodeExporter commented 8 years ago
Used full path to icons.

Original comment by kenneth....@gmail.com on 2 Dec 2009 at 7:24