Bug 766867 - Use null-safe string comparison for oldURL. r=mbrubeck

This commit is contained in:
Brian Nicholson 2012-06-26 23:18:02 -07:00
parent eafb7a19b9
commit 9784b4c6f0

View File

@ -1389,7 +1389,8 @@ abstract public class GeckoApp
final String oldURL = tab.getURL();
GeckoAppShell.getHandler().postDelayed(new Runnable() {
public void run() {
if (!oldURL.equals(tab.getURL()))
// tab.getURL() may return null
if (!TextUtils.equals(oldURL, tab.getURL()))
return;
getAndProcessThumbnailForTab(tab);