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

@@ -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);