fix(pdf): no photo

This commit is contained in:
Thibaut Valentin 2025-02-06 13:43:38 +01:00
parent 4b430e241f
commit b983f4e3ec

View File

@ -135,7 +135,7 @@ public class Main {
// Adding member photo
Image memberPhoto;
if (pdfData.photo_file != null && pdfData.photo_file.exists()) {
if (pdfData.photo_file != null && pdfData.photo_file.exists() && pdfData.photo_file.getAbsolutePath().equals("/dev/null")) {
memberPhoto = Image.getInstance(Files.readAllBytes(pdfData.photo_file.toPath()));
} else {
memberPhoto = Image.getInstance(