From f1207dbd3a0b9b05746eecfd0eb4aa4e1efcbeb9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 30 Oct 2015 20:36:03 +0000 Subject: coverity#1326230 Dereference after null check Change-Id: I463ad43a31b870e6e67720089514337336e6015e --- qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qadevOOo') diff --git a/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java b/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java index 277ba56fe667..77e96d72fa34 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java +++ b/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java @@ -51,13 +51,12 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { requiredMethod("getLocaleList()"); boolean result = true; - boolean locResult = false; for (int i = 0; i < locales.length; i++) { String[] algNames = oObj.getAlgorithmList(locales[i]); 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); for (int j=0; j