prevent NPE

This commit is contained in:
Anthony Calosa
2023-05-25 10:17:09 +08:00
parent fc944ce41b
commit 6fc7df840d
2 changed files with 4 additions and 2 deletions

View File

@@ -1660,7 +1660,8 @@ public class FSkin {
w0 = tempCoords[2];
h0 = tempCoords[3];
SkinImage.setImage(s0, bim.getSubimage(x0, y0, w0, h0));
if (bim != null)
SkinImage.setImage(s0, bim.getSubimage(x0, y0, w0, h0));
}
/**