This commit is contained in:
zimzaza4
2024-12-05 22:36:53 +08:00
parent 1414e4360f
commit 4931513b8b

View File

@@ -344,7 +344,9 @@ public class GeneratorMain {
continue;
}
try {
ImageIO.write(entry.getValue().getImage(), "png", path.toFile());
if (entry.getValue().getImage() != null) {
ImageIO.write(entry.getValue().getImage(), "png", path.toFile());
}
} catch (IOException e) {
e.printStackTrace();
}