You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2011/04/06 15:25:01 UTC
DO NOT REPLY [Bug 51032] New: NullpointerException on invalid
attribute values for text-decoration.
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: fop-dev@xmlgraphics.apache.org
ReportedBy: florian@apolloner.eu
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.
DO NOT REPLY [Bug 51032] NullpointerException on invalid attribute
values for text-decoration.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51032
--- Comment #1 from Florian Apolloner <fl...@apolloner.eu> 2011-04-06 09:25:40 EDT ---
Created an attachment (id=26862)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26862)
fo file showing 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.
DO NOT REPLY [Bug 51032] NullpointerException on invalid attribute
values for text-decoration.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51032
--- Comment #2 from Andreas L. Delmelle <ad...@apache.org> 2011-04-06 13:33:29 EDT ---
Thanks for reporting. I refactored that bit a few weeks ago, and it did not
enter my head to check for invalid values. We apparently did not have a check
for this, yet, so your test case is more than welcome. Almost fixed on my end,
so expect this in Trunk soon.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51032] NullpointerException on invalid attribute
values for text-decoration.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51032
--- Comment #4 from Florian Apolloner <fl...@apolloner.eu> 2011-04-06 14:52:18 EDT ---
Hell you are fast; thx :) I'll test it tomorrow and come back to you if I find
other bugs. If you don't hear anything from me I didn't find any other bugs
*gg*
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51032] NullpointerException on invalid attribute
values for text-decoration.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51032
Andreas L. Delmelle <ad...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Andreas L. Delmelle <ad...@apache.org> 2011-04-06 14:42:24 EDT ---
Fixed in r1089559 (see: http://svn.apache.org/viewvc?rev=1089559&view=rev)
Thanks (again) for reporting!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51032] NullpointerException on invalid attribute
values for text-decoration.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51032
--- Comment #5 from Andreas L. Delmelle <ad...@apache.org> 2011-04-06 15:59:47 EDT ---
(In reply to comment #4)
> Hell you are fast; thx :)
No problem. If only they all were that easily fixed. ;-)
Seriously, it was still fresh in memory, so I knew what needed to be done and
saw no reason to postpone.
> I'll test it tomorrow and come back to you if I find other bugs.
Cool, thanks! This is one of the reasons why active use of Trunk should be
promoted. :-)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 51032] NullpointerException on invalid attribute
values for text-decoration.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51032
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #6 from Glenn Adams <gl...@skynav.com> 2012-04-01 06:18:25 UTC ---
batch transition to closed; if someone wishes to restore one of these to
resolved in order to perform a verification step, then feel free to do so
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.