зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1312114 - Post: make catch more specific to not hide exceptions r=sebastian
Catching everything is annoying, since we want to be able to see non-JSON related exceptions that happen during icon loading. Specifically: it was harder to debug issues during the VectorDrawable support upgrade. MozReview-Commit-ID: 79j7FRxu2hh --HG-- extra : rebase_source : 4bb14434fce255fea585072e83e3d3723a72611b
This commit is contained in:
Родитель
11bfdbe6fb
Коммит
fc826bbade
|
@ -1,5 +1,6 @@
|
|||
package org.mozilla.gecko.prompts;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.mozilla.gecko.IntentHelper;
|
||||
import org.mozilla.gecko.GeckoAppShell;
|
||||
import org.mozilla.gecko.ThumbnailHelper;
|
||||
|
@ -119,7 +120,7 @@ public class PromptListItem {
|
|||
try {
|
||||
PromptListItem item = new PromptListItem(items.getJSONObject(i));
|
||||
list.add(item);
|
||||
} catch (Exception ex) { }
|
||||
} catch (JSONException ex) { }
|
||||
}
|
||||
|
||||
return list.toArray(new PromptListItem[length]);
|
||||
|
|
Загрузка…
Ссылка в новой задаче