mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-29 18:34:42 +00:00
Fixed: PDF Export - NullPointer when font of text is missing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user