Changeset 12105
- Timestamp:
- 2006-07-07T14:27:11+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/JarTools.java
r10013 r12105 32 32 import java.net.*; 33 33 import javax.swing.*; 34 import org.greenstone.gatherer.DebugStream; 34 35 35 36 … … 88 89 static public ImageIcon getImage(String filename, boolean wait_until_complete) 89 90 { 90 ImageIcon image = new ImageIcon(root_class.getResource("/images/" + filename)); 91 ImageIcon image = null; 92 try { 93 image = new ImageIcon(root_class.getResource("/images/" + filename)); 94 } 95 catch (NullPointerException exception) { 96 System.err.println("Error: Could not load image " + filename); 97 DebugStream.println("Error: Could not load image " + filename); 98 } 99 91 100 if (image == null) { 92 101 image = ERROR_ICON;
Note:
See TracChangeset
for help on using the changeset viewer.