klease 2002/09/26 14:11:21
Modified: src/org/apache/fop/configuration Tag: fop-0_20_2-maintain
FontInfo.java
Log:
Fix NPE if no embed file specified for a font
Revision Changes Path
No revision
No revision
1.2.2.3 +2 -1 xml-fop/src/org/apache/fop/configuration/Attic/FontInfo.java
Index: FontInfo.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/configuration/Attic/FontInfo.java,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -u -r1.2.2.2 -r1.2.2.3
--- FontInfo.java 2 Aug 2002 20:28:46 -0000 1.2.2.2
+++ FontInfo.java 26 Sep 2002 21:11:21 -0000 1.2.2.3
@@ -59,6 +59,7 @@
*/
public String getEmbedFile() throws FOPException {
// check if it's a URL and convert it to a filename
+ if (embedFile == null) return null;
try {
embedFile = new URL(embedFile).getFile();
} catch (MalformedURLException mue) {}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]