mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 731372 - Fix NPE in SessionSnapshotRunnable. r=blassey
This commit is contained in:
parent
7f483620e2
commit
c0f82b0771
@ -583,9 +583,10 @@ abstract public class GeckoApp
|
|||||||
|
|
||||||
String viewportJSON = viewportMetrics.toJSON();
|
String viewportJSON = viewportMetrics.toJSON();
|
||||||
// If the title, uri and viewport haven't changed, the old screenshot is probably valid
|
// 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) &&
|
if (viewportJSON.equals(mLastViewport) &&
|
||||||
mLastTitle.equals(lastHistoryEntry.mTitle) &&
|
lastHistoryEntry.mTitle.equals(mLastTitle) &&
|
||||||
mLastSnapshotUri.equals(lastHistoryEntry.mUri))
|
lastHistoryEntry.mUri.equals(mLastSnapshotUri))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mLastViewport = viewportJSON;
|
mLastViewport = viewportJSON;
|
||||||
|
Loading…
Reference in New Issue
Block a user