summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-20 10:03:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-20 10:56:11 +0000
commit5ccca93c1c4b4ba0b835e4bbf59a1306bb97c716 (patch)
tree53082742423d66bcab08e8636829c77525b9d942 /qadevOOo
parent0eebf260b20dae7a73b0abb1d461e29b6b8446fa (diff)
coverity#1326467 Dereference null return value
Change-Id: If2491fb126f7392ed641087322a863736e7f4342
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/base/java_complex.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/qadevOOo/runner/base/java_complex.java b/qadevOOo/runner/base/java_complex.java
index 7e639021f52d..212c9337778f 100644
--- a/qadevOOo/runner/base/java_complex.java
+++ b/qadevOOo/runner/base/java_complex.java
@@ -44,15 +44,20 @@ public class java_complex implements TestBase
*/
public boolean executeTest(TestParameters param)
{
-
// get the test job
String testJob = ((String) param.get("TestJob"));
DescGetter descGetter = new ComplexDescGetter();
// get the test jobs
DescEntry[] entries = descGetter.getDescriptionFor(testJob, null, true);
- return executeTest(param, entries);
+ if (entries == null) {
+ System.out.println("Couldn't get Description for Job: " + testJob);
+
+ return false;
+ }
+
+ return executeTest(param, entries);
}
/**