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();
|
||||
// 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;
|
||||
|
Loading…
Reference in New Issue
Block a user