From 04fa668d1020622969f99f817ccc4aa39d92577c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 4 Feb 2016 11:23:23 +0000 Subject: coverity#1326217 Explicit null dereferenced Change-Id: Id1c35c5022eddfd1d7bca88c4833a0cba01b9cfa --- qadevOOo/runner/helper/APIDescGetter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qadevOOo/runner/helper/APIDescGetter.java b/qadevOOo/runner/helper/APIDescGetter.java index 0320fb581bf6..217e241b34fd 100644 --- a/qadevOOo/runner/helper/APIDescGetter.java +++ b/qadevOOo/runner/helper/APIDescGetter.java @@ -361,11 +361,14 @@ public class APIDescGetter extends DescGetter { parent.hasErrorMsg = true; parent.ErrorMsg = "IOException while reading the description"; - - return null; + break; } } + if (ifcDesc == null) { + return null; + } + ifcDesc.SubEntries = getDescArray(meth_names.toArray()); ifcDesc.SubEntryCount = meth_names.size(); -- cgit