Fixed another NullPointerException with user logos.
This commit is contained in:
parent
77666626ef
commit
2e356bb986
BIN
sigIRCv2.jar
BIN
sigIRCv2.jar
Binary file not shown.
@ -199,7 +199,7 @@ public class TwitchModule extends Module{
|
||||
announcedFollowerUser = user;
|
||||
String followerAnnouncement = user.getDisplayName()+" is now following the stream!";
|
||||
String userlogo = USERDIR+user.getId()+"_logo";
|
||||
if (!user.getLogo().equalsIgnoreCase("null")) {
|
||||
if (user.getLogo()!=null && !user.getLogo().equalsIgnoreCase("null")) {
|
||||
try {
|
||||
org.apache.commons.io.FileUtils.copyURLToFile(new URL(user.getLogo()),new File(userlogo));
|
||||
File logo = new File(userlogo);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user