From ba05bd50ffe87550e40c39b0ebd0443692f876a9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 15 Jan 2016 10:21:43 +0000 Subject: coverity#1326291 Dereference after null check Change-Id: Ie5e3d749284514649edbb7e8dfd753a112feeb31 --- .../tests/java/ifc/configuration/backend/_XSingleLayerStratum.java | 5 +++-- 1 file 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; -- cgit v1.2.3