diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-03 13:50:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-04 13:55:55 +0000 |
commit | 0f3656816c15290f7a21f45d4334787a69a88c5b (patch) | |
tree | b7f33affe4cdae123e3d2996ba141cedc2d2daf0 /qadevOOo | |
parent | b7d32843ccf42ae3d54600496370034ee161e017 (diff) |
coverity#1326301 Explicit null dereferenced
and
coverity#1326561 Dereference before null check
Change-Id: I53d1e99ee05dd8d32a7fadc870344391647f3b9d
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java b/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java index 79b541100130..5c48e44e1bf8 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XTablesSupplier.java @@ -58,11 +58,12 @@ public class _XTablesSupplier extends MultiMethodTest { (XServiceInfo.class, tabs.getByName(tabNames[0])) ; } catch (com.sun.star.uno.Exception e) {} - log.println("Support : " + - info.supportsService("com.sun.star.sdbcx.Table")) ; - + if (info != null) { + log.println("Support : " + + info.supportsService("com.sun.star.sdbcx.Table")) ; + } - tRes.tested("getTables()", tabs != null) ; + tRes.tested("getTables()", info != null) ; } } // finish class _XTablesSupplier |