summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-02-04 11:24:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-02-04 15:47:12 +0000
commit84db01965ef701c829d54d278663f7cf8d670cba (patch)
tree94be447f146d01e5b1c52bd7ff74c53822c7f14a /qadevOOo
parent04fa668d1020622969f99f817ccc4aa39d92577c (diff)
coverity#1326216 Explicit null dereferenced
Change-Id: I1c65e776580b03a658c61c3c680f63d5c35fa52a
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/helper/APIDescGetter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/qadevOOo/runner/helper/APIDescGetter.java b/qadevOOo/runner/helper/APIDescGetter.java
index 217e241b34fd..60d7330d9619 100644
--- a/qadevOOo/runner/helper/APIDescGetter.java
+++ b/qadevOOo/runner/helper/APIDescGetter.java
@@ -802,7 +802,9 @@ public class APIDescGetter extends DescGetter
}
}
- for (int i = 0; i < modules.length; i++)
+ int moduleLength = modules != null ? modules.length : 0;
+
+ for (int i = 0; i < moduleLength; ++i)
{
if (!isUnusedModule(modules[i]))
{