Bug 829927 - Don't read favicon URL if it's null. r=mfinkle

This commit is contained in:
Brian Nicholson 2013-02-20 17:16:50 -08:00
parent fdcddcba33
commit 458a3e799d

View File

@ -1563,10 +1563,11 @@ public class BrowserProvider extends ContentProvider {
null, null, null, null);
while (c.moveToNext()) {
String faviconUrl = c.getString(c.getColumnIndexOrThrow(Obsolete.Images.FAVICON_URL));
long faviconId = -1;
if (faviconUrl != null) {
int faviconUrlIndex = c.getColumnIndexOrThrow(Obsolete.Images.FAVICON_URL);
String faviconUrl = null;
if (!c.isNull(faviconUrlIndex)) {
faviconUrl = c.getString(faviconUrlIndex);
Cursor c2 = null;
try {
c2 = db.query(TABLE_FAVICONS,