You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2011/11/16 02:23:31 UTC
DO NOT REPLY [Bug 52190] New: [PATCH] XWPFRun.setFontFamily fails if
called first when setting run properties
https://issues.apache.org/bugzilla/show_bug.cgi?id=52190
Bug #: 52190
Summary: [PATCH] XWPFRun.setFontFamily fails if called first
when setting run properties
Product: POI
Version: 3.8-dev
Platform: Macintosh
Status: NEW
Severity: normal
Priority: P2
Component: XWPF
AssignedTo: dev@poi.apache.org
ReportedBy: gregg.morris@gmail.com
Classification: Unclassified
Created attachment 27945
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27945
SVN patch file in plain text.
XWPFRun.setFontFamily doesn't check for the existence of the Run's CTRPr
member. If setFontFamily is called before any other method that sets a run
property, it will throw a NullPointerException. My solution was to use the same
test/creation logic as is used in other methods that set a run property. If the
run property doesn't exist, it will be created and the font family set.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 52190] [PATCH] XWPFRun.setFontFamily fails if
called first when setting run properties
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52190
Nick Burch <ni...@alfresco.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
OS/Version| |All
--- Comment #1 from Nick Burch <ni...@alfresco.com> 2011-11-16 10:33:19 UTC ---
Thanks, applied in r1202620.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org