mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 21:15:38 +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)
|
||||
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))
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue