Kaydet (Commit) 097393dc authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326269 Dereference after null check

Change-Id: I928883cae95fbeba54913dfa2acc429ad15f336d
üst 16998c6a
...@@ -95,7 +95,12 @@ public class _XMultiPropertyStates extends MultiMethodTest { ...@@ -95,7 +95,12 @@ public class _XMultiPropertyStates extends MultiMethodTest {
try { try {
states = oObj.getPropertyStates(names); states = oObj.getPropertyStates(names);
result = (states != null) && (states.length == names.length); result = (states != null) && (states.length == names.length);
log.println("Number of states: " + states.length); if (states != null) {
log.println("Number of states: " + states.length);
}
else {
log.println("Number of states: <null>");
}
} catch (com.sun.star.beans.UnknownPropertyException e) { } catch (com.sun.star.beans.UnknownPropertyException e) {
log.println("some properties seem to be unknown: " + e.toString()); log.println("some properties seem to be unknown: " + e.toString());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment