diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-04 11:24:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-04 15:47:12 +0000 |
commit | 84db01965ef701c829d54d278663f7cf8d670cba (patch) | |
tree | 94be447f146d01e5b1c52bd7ff74c53822c7f14a /qadevOOo | |
parent | 04fa668d1020622969f99f817ccc4aa39d92577c (diff) |
coverity#1326216 Explicit null dereferenced
Change-Id: I1c65e776580b03a658c61c3c680f63d5c35fa52a
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/runner/helper/APIDescGetter.java | 4 |
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])) { |