private ArrayList<String> fillOjCode(ArrayList<OjCode> values) { ArrayList<String> mapToFill = new ArrayList<String>(); for (int h = 0; h < values.size(); h++) { String value = (values.get(h).getLabel() != null) ? values.get(h).getLabel().get(LANG.toUpperCase()) : ""; if (value == null) { value = (values.get(h).getLabel() != null) ? values.get(h).getLabel().get(DEFAULT_LANG.toUpperCase()) : ""; } mapToFill.add(values.get(h).getCode() + " - " + value); } return mapToFill; }