Small bugfix for null logos.
This commit is contained in:
parent
35fbfa90e5
commit
72c10519cf
BIN
sigIRCv2.jar
BIN
sigIRCv2.jar
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…
x
Reference in New Issue
Block a user