https://issues.apache.org/bugzilla/show_bug.cgi?id=51032
Summary: NullpointerException on invalid attribute values for
text-decoration.
Product: Fop
Version: all
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi,
if I put "italic" into "text-decoration" (which obviously isn't allowed, but
was a typo I made) I get a Nullpointerexception:
java.lang.NullPointerException
at
org.apache.fop.fo.properties.TextDecorationMaker.convertProperty(TextDecorationMaker.java:69)
at org.apache.fop.fo.properties.PropertyMaker.make(PropertyMaker.java:441)
at
org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java:409)
at
org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:317)
at org.apache.fop.fo.FObj.processNode(FObj.java:120)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:282)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
at org.apache.fop.cli.Main.startFOP(Main.java:177)
at org.apache.fop.cli.Main.main(Main.java:208)
Imo an error message indicating the problem would be great… (Happens on fop-svn
from today). I attached a fo file which leads to the bug.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.