mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-12 05:25:37 +02:00
#403, fix crash due to empty history record
This commit is contained in:
parent
6745982d60
commit
ae8da16834
1 changed files with 3 additions and 1 deletions
|
@ -1503,7 +1503,9 @@ namespace PersistentWindows.Common
|
||||||
lock(captureLock)
|
lock(captureLock)
|
||||||
foreach (var kid in deadAppPos.Keys)
|
foreach (var kid in deadAppPos.Keys)
|
||||||
{
|
{
|
||||||
var appPos = deadAppPos[kid].Last<ApplicationDisplayMetrics>();
|
var appPos = deadAppPos[kid].LastOrDefault<ApplicationDisplayMetrics>();
|
||||||
|
if (appPos == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!procName.Equals(appPos.ProcessName))
|
if (!procName.Equals(appPos.ProcessName))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue