Skip to content

Commit

Permalink
Error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Apr 5, 2019
1 parent c65b099 commit 9bafa7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static ImageIcon getOrCreateIcon(String name) {
try {
icon = new ImageIcon(ImageUtilities.class.getResource(rname));
} catch (NullPointerException ex) {
throw new RuntimeException(String.format("Missing icon [%s].", rname));
throw new IllegalStateException(String.format("Missing icon [%s].", rname));
}
cache.put(rname, icon);
}
Expand Down

0 comments on commit 9bafa7b

Please sign in to comment.