diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-06 09:53:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-06 18:16:47 +0100 |
commit | bf2f1adfd2e4725518147657c6b57eb5697a29d5 (patch) | |
tree | 8c0f808c70a0522f89cc6363832c187312f87c99 /qadevOOo | |
parent | b1095ac103db4fc62611233e6fed2054ff0d6817 (diff) |
cid#1458159 Dereference after null check
Change-Id: I5ec0f9571f3b551e716899cc86a57c2c91369641
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88083
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java b/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java index 0b8fdb561fad..424e3d576470 100644 --- a/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java +++ b/qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java @@ -110,8 +110,10 @@ public class _XMultiComponentFactory extends MultiMethodTest { } log.println("Available service names:"); - for(int i = 0; i < availableServiceNames.length; i++) { - log.println(" " + availableServiceNames[i]); + if (availableServiceNames != null) { + for(int i = 0; i < availableServiceNames.length; i++) { + log.println(" " + availableServiceNames[i]); + } } tRes.tested("getAvailableServiceNames()", result); |