fix(pdf): no photo
This commit is contained in:
parent
4b430e241f
commit
b983f4e3ec
@ -135,7 +135,7 @@ public class Main {
|
|||||||
|
|
||||||
// Adding member photo
|
// Adding member photo
|
||||||
Image memberPhoto;
|
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()));
|
memberPhoto = Image.getInstance(Files.readAllBytes(pdfData.photo_file.toPath()));
|
||||||
} else {
|
} else {
|
||||||
memberPhoto = Image.getInstance(
|
memberPhoto = Image.getInstance(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user