coverity#1326294 Dereference after null check

Change-Id: I057b9ef27bd84ac9875fa6ce8321ff03e0f879e6
This commit is contained in:
Caolán McNamara
2016-01-15 20:24:51 +00:00
parent ba05bd50ff
commit d86963b5e8
2 changed files with 5 additions and 7 deletions
@@ -36,9 +36,9 @@ public class _XSchemaSupplier extends MultiMethodTest {
if (aSchema == null) {
log.println("\treturned Layer is NULL -- FAILED");
} else {
res &= checkSchema(aSchema);
}
res &= checkSchema(aSchema);
} catch (com.sun.star.configuration.backend.BackendAccessException e) {
log.println("Unexpected Exception (" + e + ") -- FAILED");
res &= false;
@@ -106,4 +106,4 @@ public class _XSchemaSupplier extends MultiMethodTest {
return res;
}
}
}
@@ -50,8 +50,7 @@ public class _XSingleLayerStratum extends MultiMethodTest {
if (aLayer == null) {
log.println("\treturned Layer is NULL -- FAILED");
}
else {
} else {
res &= checkLayer(aLayer);
}
} catch (com.sun.star.configuration.backend.BackendAccessException e) {
@@ -89,8 +88,7 @@ public class _XSingleLayerStratum extends MultiMethodTest {
if (aLayer == null) {
log.println("\treturned Layer is NULL -- FAILED");
}
else {
} else {
res &= checkLayer(aLayer);
}
} catch (com.sun.star.configuration.backend.BackendAccessException e) {