Kaydet (Commit) 4f4667da authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326287 Explicit null dereferenced

Change-Id: I6b2f8beb25cb5743db9d5f0b92dfce723c6d89e5
üst abe51680
......@@ -39,17 +39,13 @@ public class _XExtendedCalendar extends MultiMethodTest {
* Load a calendar
*/
@Override
public void before() {
public void before() throws Exception {
Locale[] installed_locales = null;
XLocaleData locData = null;
try {
locData = UnoRuntime.queryInterface(
XLocaleData.class,
tParam.getMSF().createInstance(
"com.sun.star.i18n.LocaleData"));
} catch (com.sun.star.uno.Exception e) {
XLocaleData locData = UnoRuntime.queryInterface(
XLocaleData.class,
tParam.getMSF().createInstance(
"com.sun.star.i18n.LocaleData"));
}
installed_locales = locData.getAllInstalledLocaleNames();
// use first Locale as fallback, if US-English is not found
Locale lo = installed_locales[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment