summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/i18n
diff options
context:
space:
mode:
authorjan iversen <jani@documentfoundation.org>2016-01-25 11:28:50 +0100
committerjan iversen <jani@documentfoundation.org>2016-01-29 10:04:39 +0000
commit3c28a0e3864edc2812a02dec2f80f09d6cf2bc73 (patch)
tree0dde3fa722db1484ef290147cf3a429211db3b9f /qadevOOo/tests/java/ifc/i18n
parentb9daeb01a26d21f1801d2b4c861eb3d59c886949 (diff)
cid#1326280, 1326295, 1326303
null pointer dereference, made test Change-Id: I2bd820a2eb04499ab3b518d5b5e5ccccf3ffe531 Reviewed-on: https://gerrit.libreoffice.org/21771 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'qadevOOo/tests/java/ifc/i18n')
-rw-r--r--qadevOOo/tests/java/ifc/i18n/_XCalendar.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/ifc/i18n/_XCalendar.java b/qadevOOo/tests/java/ifc/i18n/_XCalendar.java
index e04595adbb8c..129339bbf1fb 100644
--- a/qadevOOo/tests/java/ifc/i18n/_XCalendar.java
+++ b/qadevOOo/tests/java/ifc/i18n/_XCalendar.java
@@ -76,15 +76,16 @@ public class _XCalendar extends MultiMethodTest {
XLocaleData.class,
tParam.getMSF().createInstance(
"com.sun.star.i18n.LocaleData"));
+
+ installed_locales = locData.getAllInstalledLocaleNames();
+ calendars = new String[installed_locales.length][];
+ count = new int[installed_locales.length];
+ oObj.loadDefaultCalendar(installed_locales[0]);
} catch (com.sun.star.uno.Exception e) {
}
- installed_locales = locData.getAllInstalledLocaleNames();
- calendars = new String[installed_locales.length][];
- count = new int[installed_locales.length];
- oObj.loadDefaultCalendar(installed_locales[0]);
- aOriginalDTime = oObj.getDateTime();
+ aOriginalDTime = oObj.getDateTime();
debug = tParam.getBool("DebugIsActive");
}