Bug 737445 - java.lang.ClassCastException: java.lang.String at org.mozilla.gecko.FormAssistPopup$AutoCompleteListAdapter.populateSuggestionsList(FormAssistPopup.java). r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-03-20 10:52:19 -07:00
parent 972d90ca7e
commit a1e1d9df70

View File

@ -283,7 +283,7 @@ public class FormAssistPopup extends ListView implements GeckoEventListener {
public void populateSuggestionsList(JSONArray suggestions) {
try {
for (int i = 0; i < suggestions.length(); i++) {
JSONObject suggestion = (JSONObject) suggestions.get(i);
JSONObject suggestion = suggestions.getJSONObject(i);
String label = suggestion.getString("label");
String value = suggestion.getString("value");
add(new Pair<String, String>(label, value));