Fixed another NullPointerException with user logos.

dev
sigonasr2 7 years ago
parent 77666626ef
commit 2e356bb986
  1. BIN
      sigIRCv2.jar
  2. 2
      src/sig/modules/TwitchModule.java

Binary file not shown.

@ -199,7 +199,7 @@ public class TwitchModule extends Module{
announcedFollowerUser = user; announcedFollowerUser = user;
String followerAnnouncement = user.getDisplayName()+" is now following the stream!"; String followerAnnouncement = user.getDisplayName()+" is now following the stream!";
String userlogo = USERDIR+user.getId()+"_logo"; String userlogo = USERDIR+user.getId()+"_logo";
if (!user.getLogo().equalsIgnoreCase("null")) { if (user.getLogo()!=null && !user.getLogo().equalsIgnoreCase("null")) {
try { try {
org.apache.commons.io.FileUtils.copyURLToFile(new URL(user.getLogo()),new File(userlogo)); org.apache.commons.io.FileUtils.copyURLToFile(new URL(user.getLogo()),new File(userlogo));
File logo = new File(userlogo); File logo = new File(userlogo);

Loading…
Cancel
Save