summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-15 10:21:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-15 20:24:50 +0000
commitba05bd50ffe87550e40c39b0ebd0443692f876a9 (patch)
treec9e736557c70077d21ca5192749fb3f455464e49
parent0189c1c34816d3b168f109f7af2596e447902b19 (diff)
coverity#1326291 Dereference after null check
Change-Id: Ie5e3d749284514649edbb7e8dfd753a112feeb31
-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 abb208989f57..3ead3c9b0b5e 100644
--- a/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java
+++ b/qadevOOo/tests/java/ifc/configuration/backend/_XSingleLayerStratum.java
@@ -90,8 +90,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;