mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Fix NullPointerException in BadgeImager
This commit is contained in:
parent
12507e9b43
commit
db8987678f
@ -53,18 +53,9 @@ public class BadgeImager {
|
|||||||
float red = (color.getRed() / 255.0F) * (maskColor.getRed() / 255.0F);
|
float red = (color.getRed() / 255.0F) * (maskColor.getRed() / 255.0F);
|
||||||
float green = (color.getGreen() / 255.0F) * (maskColor.getGreen() / 255.0F);
|
float green = (color.getGreen() / 255.0F) * (maskColor.getGreen() / 255.0F);
|
||||||
float blue = (color.getBlue() / 255.0F) * (maskColor.getBlue() / 255.0F);
|
float blue = (color.getBlue() / 255.0F) * (maskColor.getBlue() / 255.0F);
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
color = new Color(red, green, blue, alpha);
|
color = new Color(red, green, blue, alpha);
|
||||||
|
|
||||||
|
|
||||||
int rgb = color.getRGB();
|
int rgb = color.getRGB();
|
||||||
image.setRGB(x, y, rgb);
|
image.setRGB(x, y, rgb);
|
||||||
}
|
}
|
||||||
@ -209,6 +200,8 @@ public class BadgeImager {
|
|||||||
part = Emulator.getGameEnvironment().getGuildManager().getPart(GuildPartType.SYMBOL, id);
|
part = Emulator.getGameEnvironment().getGuildManager().getPart(GuildPartType.SYMBOL, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (part == null) continue;
|
||||||
|
|
||||||
BufferedImage imagePart = BadgeImager.deepCopy(this.cachedImages.get(part.valueA));
|
BufferedImage imagePart = BadgeImager.deepCopy(this.cachedImages.get(part.valueA));
|
||||||
|
|
||||||
Point point;
|
Point point;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user