Commit 23035a90 authored by 盖献康's avatar 盖献康

bug - 70779

parent 47279a0c
......@@ -157,7 +157,7 @@ public class PdfTemplateManagementServiceImpl implements PdfTemplateManagementSe
Optional<String> optionalElement = i < pictureList.size()
? Optional.of(pictureList.get(i))
: Optional.empty();
if (optionalElement.isPresent()) {
if (optionalElement.isPresent() && StrUtil.isNotEmpty(optionalElement.get())) {
Image image = Image.getInstance(new URL(minioEndpoint + optionalElement.get()));
image.scaleAbsolute(100, 100);
cell.addElement(image);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment