Fixed another NullPointerException with user logos.

This commit is contained in:
sigonasr2 2017-09-24 18:26:53 -05:00
parent 77666626ef
commit 2e356bb986
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -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);