Created attachment 27945 [details] 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.
Thanks, applied in r1202620.