qadevOOo/tests/java/ifc/lang/_XMultiComponentFactory.java |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit bf2f1adfd2e4725518147657c6b57eb5697a29d5
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Feb 6 09:53:46 2020 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Feb 6 18:16:47 2020 +0100

    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 <caol...@redhat.com>

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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to