summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-15 10:21:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-15 20:24:50 +0000
commit0189c1c34816d3b168f109f7af2596e447902b19 (patch)
tree3e9afb4c334d37cd75dce2619d035dce141c1426 /qadevOOo
parenta62d8270c91c8fc6c05cf277e14def7f385fd783 (diff)
coverity#1326290 Dereference after null check
Change-Id: I4a028603cbc413ecb670a39da49538819cd15242
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java b/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java
index 31fbdc16ee5b..abb208989f57 100644
--- a/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java
+++ b/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java
@@ -51,8 +51,9 @@ public class _XSingleLayerStratum extends MultiMethodTest {
if (aLayer == null) {
log.println("\treturned Layer is NULL -- FAILED");
}
-
- res &= checkLayer(aLayer);
+ else {
+ res &= checkLayer(aLayer);
+ }
} catch (com.sun.star.configuration.backend.BackendAccessException e) {
log.println("unexpected Exception -- FAILED");
res = false;