You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2002/07/04 09:30:02 UTC
cvs commit: xml-fop/src/org/apache/fop/svg PDFTextElementBridge.java
keiron 2002/07/04 00:30:02
Modified: src/org/apache/fop/svg PDFTextElementBridge.java
Log:
prevent npe
Revision Changes Path
1.8 +2 -2 xml-fop/src/org/apache/fop/svg/PDFTextElementBridge.java
Index: PDFTextElementBridge.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFTextElementBridge.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- PDFTextElementBridge.java 28 Jun 2002 10:09:07 -0000 1.7
+++ PDFTextElementBridge.java 4 Jul 2002 07:30:01 -0000 1.8
@@ -39,7 +39,7 @@
public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e) {
GraphicsNode node = super.createGraphicsNode(ctx, e);
- if(isSimple(ctx, e, node)) {
+ if(node != null && isSimple(ctx, e, node)) {
((TextNode)node).setTextPainter(getTextPainter());
}
return node;
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org