Commit db42d3e6 authored by 盖献康's avatar 盖献康

Merge branch 'gaixiankang' into 'dev'

bug - 70779

See merge request !253
parents 9f761b05 eaeb04c2
...@@ -157,7 +157,7 @@ public class PdfTemplateManagementServiceImpl implements PdfTemplateManagementSe ...@@ -157,7 +157,7 @@ public class PdfTemplateManagementServiceImpl implements PdfTemplateManagementSe
Optional<String> optionalElement = i < pictureList.size() Optional<String> optionalElement = i < pictureList.size()
? Optional.of(pictureList.get(i)) ? Optional.of(pictureList.get(i))
: Optional.empty(); : Optional.empty();
if (optionalElement.isPresent()) { if (optionalElement.isPresent() && StrUtil.isNotEmpty(optionalElement.get())) {
Image image = Image.getInstance(new URL(minioEndpoint + optionalElement.get())); Image image = Image.getInstance(new URL(minioEndpoint + optionalElement.get()));
image.scaleAbsolute(100, 100); image.scaleAbsolute(100, 100);
cell.addElement(image); 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