summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-20 20:42:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-20 20:54:20 +0000
commitf14628438d70f621a48e5ab00a4fa76e8229d831 (patch)
tree7896da2571fbed6ae17679ab2123e44b64a538bc /qadevOOo
parentc37c82319f88e75ba28fd4b7bf26b5ea01846c17 (diff)
coverity#1326436 Dereference null return value
Change-Id: I40f73b48757e81ac4e1b5374bef4fea334ca8d0a
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/base/java_fat.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/qadevOOo/runner/base/java_fat.java b/qadevOOo/runner/base/java_fat.java
index a0426fdb77ae..2fa1d05c9722 100644
--- a/qadevOOo/runner/base/java_fat.java
+++ b/qadevOOo/runner/base/java_fat.java
@@ -360,7 +360,11 @@ public class java_fat implements TestBase {
try {
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) {
System.out.println("Office disposed");
closeExistingOffice();