vorkath: Null check

This commit is contained in:
sdburns1998
2019-07-07 21:51:21 +02:00
parent 3bea507874
commit 7e178ff57f

View File

@@ -80,7 +80,11 @@ public class VorkathOverlay extends Overlay
BufferedImage currentPhaseIcon = getIcon(vorkath);
int totalWidth = currentPhaseIcon.getWidth() * OVERLAY_ICON_MARGIN;
int totalWidth = 0;
if (currentPhaseIcon != null)
{
totalWidth = currentPhaseIcon.getWidth() * OVERLAY_ICON_MARGIN;
}
int bgPadding = 8;
int currentPosX = 0;