replaced Exception with IOException
parent
502074c0ba
commit
321c75b207
|
@ -2,8 +2,7 @@ package magic.data;
|
|||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Vector;
|
||||
|
||||
|
@ -43,7 +42,7 @@ public class AvatarImages {
|
|||
BufferedImage image;
|
||||
try {
|
||||
image=ImageIO.read(file);
|
||||
} catch (final Exception ex) {
|
||||
} catch (final IOException ex) {
|
||||
image=IconImages.MISSING;
|
||||
}
|
||||
return new PlayerAvatar(image);
|
||||
|
|
Loading…
Reference in New Issue