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

coverity#1326230 Dereference after null check

Change-Id: I463ad43a31b870e6e67720089514337336e6015e
üst 3b13f165
...@@ -51,13 +51,12 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { ...@@ -51,13 +51,12 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest {
requiredMethod("getLocaleList()"); requiredMethod("getLocaleList()");
boolean result = true; boolean result = true;
boolean locResult = false;
for (int i = 0; i < locales.length; i++) { for (int i = 0; i < locales.length; i++) {
String[] algNames = oObj.getAlgorithmList(locales[i]); String[] algNames = oObj.getAlgorithmList(locales[i]);
algorithms.put(Integer.valueOf(i), algNames); algorithms.put(Integer.valueOf(i), algNames);
locResult = algNames != null && algNames.length > 0; boolean locResult = algNames.length > 0;
System.out.println("Locale " + i + ": " + locales[i].Country+","+locales[i].Language); System.out.println("Locale " + i + ": " + locales[i].Country+","+locales[i].Language);
for (int j=0; j<algNames.length; j++) { for (int j=0; j<algNames.length; j++) {
......
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