Fixed an exception that occurred when followers had a null Bio.
This commit is contained in:
parent
37e27213a7
commit
df2a9d0e71
BIN
sigIRCv2.jar
BIN
sigIRCv2.jar
Binary file not shown.
@ -453,7 +453,7 @@ public class TwitchModule extends Module{
|
|||||||
if (textY<bounds.getY()+bounds.getHeight() && textX+usernameTextsize.getWidth()>bounds.getX()) {
|
if (textY<bounds.getY()+bounds.getHeight() && textX+usernameTextsize.getWidth()>bounds.getX()) {
|
||||||
DrawUtils.drawCenteredText(g, sigIRC.panel.programFont, (int)bounds.getX()+sigIRC.twitchmodule_followerText_centerX+xAlteration, (int)bounds.getY()+sigIRC.twitchmodule_followerText_Y+yAlteration, Color.BLACK, announcedFollowerUser.getDisplayName());
|
DrawUtils.drawCenteredText(g, sigIRC.panel.programFont, (int)bounds.getX()+sigIRC.twitchmodule_followerText_centerX+xAlteration, (int)bounds.getY()+sigIRC.twitchmodule_followerText_Y+yAlteration, Color.BLACK, announcedFollowerUser.getDisplayName());
|
||||||
}
|
}
|
||||||
if (!announcedFollowerUser.getBio().equalsIgnoreCase("null")) {
|
if (announcedFollowerUser.getBio()!=null && !announcedFollowerUser.getBio().equalsIgnoreCase("null")) {
|
||||||
if (followerUserLogo!=null) {
|
if (followerUserLogo!=null) {
|
||||||
final int image_size = sigIRC.twitchmodule_newfollowerImgLogoSize;
|
final int image_size = sigIRC.twitchmodule_newfollowerImgLogoSize;
|
||||||
int img_startx = (int)(bounds.getX()+bounds.getWidth()-ticksPassed*3-(image_size+4));
|
int img_startx = (int)(bounds.getX()+bounds.getWidth()-ticksPassed*3-(image_size+4));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user