Small bugfix for null logos.

dev
sigonasr2 7 years ago
parent 35fbfa90e5
commit 72c10519cf
  1. BIN
      sigIRCv2.jar
  2. 7
      src/sig/modules/TwitchModule.java

Binary file not shown.

@ -201,7 +201,12 @@ public class TwitchModule extends Module{
if (!user.getLogo().equalsIgnoreCase("null")) {
try {
org.apache.commons.io.FileUtils.copyURLToFile(new URL(user.getLogo()),new File(userlogo));
followerUserLogo = ImageIO.read(new File(userlogo));
File logo = new File(userlogo);
if (logo.exists()) {
followerUserLogo = ImageIO.read(logo);
} else {
followerUserLogo=null;
}
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {

Loading…
Cancel
Save