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

coverity#1326436 Dereference null return value

Change-Id: I40f73b48757e81ac4e1b5374bef4fea334ca8d0a
üst c37c8231
...@@ -360,7 +360,11 @@ public class java_fat implements TestBase { ...@@ -360,7 +360,11 @@ public class java_fat implements TestBase {
try { try {
tCase.initializeTestCase(param); tCase.initializeTestCase(param);
return tCase.getTestEnvironment(param); TestEnvironment tEnv = tCase.getTestEnvironment(param);
if (tEnv == null) {
throw new Exception("Could not get env for '" + entry.entryName + "'");
}
return tEnv;
} catch (com.sun.star.lang.DisposedException de) { } catch (com.sun.star.lang.DisposedException de) {
System.out.println("Office disposed"); System.out.println("Office disposed");
closeExistingOffice(); closeExistingOffice();
......
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