summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qadevOOo/runner/graphical/FileHelper.java2
-rw-r--r--qadevOOo/tests/java/ifc/i18n/_XCalendar.java11
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java4
3 files changed, 10 insertions, 7 deletions
diff --git a/qadevOOo/runner/graphical/FileHelper.java b/qadevOOo/runner/graphical/FileHelper.java
index 88d404204a0a..05acb5e35e05 100644
--- a/qadevOOo/runner/graphical/FileHelper.java
+++ b/qadevOOo/runner/graphical/FileHelper.java
@@ -44,6 +44,8 @@ public class FileHelper
String fs = System.getProperty("file.separator");
if (! fs.equals("/"))
{
+ if (sSystemFile == null)
+ throw new IllegalStateException("sSystemFile is unexpected null");
sSystemFile = sSystemFile.replace ('/', fs.toCharArray ()[0]);
}
// FEATURE FOR UNC NEED!!!
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");
}
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java
index ed7012d76cf2..a7b54636cc86 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java
@@ -88,8 +88,8 @@ public final class DocumentDeserializerImpl
while (enumerate.hasNext()) {
docOut = (DOMDocument) enumerate.next();
}
- domDoc = docOut.getContentDOM();
try {
+ domDoc = docOut.getContentDOM();
baos = transform(domDoc);
sxwDoc.initContentDOM();
DocumentBuilderFactory dFactory = DocumentBuilderFactory.newInstance();
@@ -184,4 +184,4 @@ public final class DocumentDeserializerImpl
Debug.log(Debug.TRACE, str);
}
-} \ No newline at end of file
+}