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

This commit is contained in:
Jindra Petřík
2021-04-05 16:56:59 +02:00
parent 941d0e0318
commit 57f17daec3
2 changed files with 8 additions and 0 deletions
@@ -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);