Fixed: PDF Export - NullPointer when font of text is missing

This commit is contained in:
Jindra Petřík
2021-03-26 19:04:22 +01:00
parent 941d0e0318
commit 57f17daec3
2 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
### Added
- [#1015], [#1466], [#1513] Better error messages during saving, display message on out of memory
### Fixed
- PDF Export - NullPointer when font of text is missing
## [14.3.1] - 2021-03-25
### Fixed
- "protected", "const", "namespace", "package" are not reserved keywords in AS1/2

View File

@@ -577,6 +577,11 @@ public class DualPdfGraphics2D extends Graphics2D implements BlendModeSetable, G
int offsetY = rec.yOffset;
y = offsetY;
}
if (font == null) {
continue;
}
StringBuilder text = new StringBuilder();
int deltaX = 0;
setColor(Color.green);