Bug 731372 - Fix NPE in SessionSnapshotRunnable. r=blassey

This commit is contained in:
Brian Nicholson 2012-03-01 12:02:09 -08:00
parent 7f483620e2
commit c0f82b0771

View File

@ -583,9 +583,10 @@ abstract public class GeckoApp
String viewportJSON = viewportMetrics.toJSON();
// If the title, uri and viewport haven't changed, the old screenshot is probably valid
// Ordering of .equals() below is important since mLast* variables may be null
if (viewportJSON.equals(mLastViewport) &&
mLastTitle.equals(lastHistoryEntry.mTitle) &&
mLastSnapshotUri.equals(lastHistoryEntry.mUri))
lastHistoryEntry.mTitle.equals(mLastTitle) &&
lastHistoryEntry.mUri.equals(mLastSnapshotUri))
return;
mLastViewport = viewportJSON;