Bug 50988 - [Patch] White-space fo character element throws NullPointerException
Summary: [Patch] White-space fo character element throws NullPointerException
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fo tree (show other bugs)
Version: trunk
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-28 11:44 UTC by Matthias Reischenbacher
Modified: 2012-04-01 06:17 UTC (History)
0 users



Attachments
Testcase (621 bytes, text/plain)
2011-03-28 11:45 UTC, Matthias Reischenbacher
Details
Patch (687 bytes, patch)
2011-03-28 11:45 UTC, Matthias Reischenbacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Reischenbacher 2011-03-28 11:44:42 UTC
If the first child element of a fo:block is a white-space fo character a NullPointerException is thrown. I analyzed the code and the problem seems to be that the currentTextNode instance variable of FObjMixed is not reset (to null or the following sibling) after the Character object has been removed (due to white space handling).
Comment 1 Matthias Reischenbacher 2011-03-28 11:45:07 UTC
Created attachment 26805 [details]
Testcase
Comment 2 Matthias Reischenbacher 2011-03-28 11:45:29 UTC
Created attachment 26806 [details]
Patch
Comment 3 Andreas L. Delmelle 2011-04-03 06:17:59 UTC
Fixed in r1088242. See: http://svn.apache.org/viewvc?rev=1088242&view=rev

Thanks for the patch!
Comment 4 Glenn Adams 2012-04-01 06:17:16 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