summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/org/apache/fop/render/pdf/PDFRenderer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/apache/fop/render/pdf/PDFRenderer.java b/src/org/apache/fop/render/pdf/PDFRenderer.java
index e9ef2b6c8..276233f36 100644
--- a/src/org/apache/fop/render/pdf/PDFRenderer.java
+++ b/src/org/apache/fop/render/pdf/PDFRenderer.java
@@ -237,7 +237,9 @@ public class PDFRenderer implements Renderer {
int w = area.getContentWidth();
int h = area.getHeight();
ColorType bg = area.getBackgroundColor();
- if (bg.alpha() == 0) {
+ // I'm not sure I should have to check for bg being null
+ // but I do
+ if ((bg != null) && (bg.alpha() == 0)) {
this.addRect(rx, ry, w, -h,
bg.red(), bg.green(), bg.blue(),
bg.red(), bg.green(), bg.blue());