coverity#1326294 Dereference after null check
Change-Id: I057b9ef27bd84ac9875fa6ce8321ff03e0f879e6
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user