summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-04 11:23:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-04 15:47:11 +0000
commit04fa668d1020622969f99f817ccc4aa39d92577c (patch)
tree256a27f17eaaa8c28ade07df3ee295189449f8e5 /qadevOOo
parentbf4ee8ee31cbaea1360eb5681d4cecd04844eb3a (diff)
coverity#1326217 Explicit null dereferenced
Change-Id: Id1c35c5022eddfd1d7bca88c4833a0cba01b9cfa
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/helper/APIDescGetter.java7
1 files 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();