Skip to content

Commit

Permalink
fixes #204
Browse files Browse the repository at this point in the history
  • Loading branch information
psibre committed Aug 26, 2014
1 parent d50058b commit 547b022
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ private void appendParagraph(String text, Element root, Locale defaultLocale) {
*/
protected Locale determineLocale(String text, Locale defaultLocale)
{
if (defaultLocale == null) {
defaultLocale = Locale.getDefault();
logger.warn("Locale is null, overriding with " + defaultLocale);
}
return defaultLocale;
}

Expand Down

0 comments on commit 547b022

Please sign in to comment.