[Libreoffice-commits] core.git: qadevOOo/runner
Caolán McNamara
caolanm at redhat.com
Wed Jan 20 02:56:38 PST 2016
qadevOOo/runner/base/java_complex.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
New commits:
commit 5ccca93c1c4b4ba0b835e4bbf59a1306bb97c716
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jan 20 10:03:25 2016 +0000
coverity#1326467 Dereference null return value
Change-Id: If2491fb126f7392ed641087322a863736e7f4342
diff --git a/qadevOOo/runner/base/java_complex.java b/qadevOOo/runner/base/java_complex.java
index 7e63902..212c933 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);
}
/**
More information about the Libreoffice-commits
mailing list