From 5ccca93c1c4b4ba0b835e4bbf59a1306bb97c716 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 20 Jan 2016 10:03:25 +0000 Subject: coverity#1326467 Dereference null return value Change-Id: If2491fb126f7392ed641087322a863736e7f4342 --- qadevOOo/runner/base/java_complex.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'qadevOOo') 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); } /** -- cgit