poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52190] New: [PATCH] XWPFRun.setFontFamily fails if called first when setting run properties
Date Wed, 16 Nov 2011 01:23:31 GMT

             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

View raw message