diff options
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java')
-rw-r--r-- | reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java b/reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java index 7825a2b34c4a..ec4c101d06e1 100644 --- a/reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java +++ b/reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java @@ -69,6 +69,13 @@ public final class StarFunctionCategory extends WeakBase catch (MissingResourceException e) { locale = Locale.ENGLISH; + try + { + category.getDisplayName(locale); + } + catch (MissingResourceException e2) + { + } } this.defaultLocale = locale; @@ -147,7 +154,14 @@ public final class StarFunctionCategory extends WeakBase public String getName() { - return category.getDisplayName(defaultLocale); + try + { + return category.getDisplayName(defaultLocale); + } + catch(Exception ex) + { + } + return "Missing category for number " + m_Number; } public com.sun.star.report.meta.XFunctionDescription getFunction(int position) throws com.sun.star.lang.IndexOutOfBoundsException, com.sun.star.lang.WrappedTargetException |