summaryrefslogtreecommitdiffstats
path: root/win/C#/Queue
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Queue')
-rw-r--r--win/C#/Queue/QueueHandler.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/C#/Queue/QueueHandler.cs b/win/C#/Queue/QueueHandler.cs
index 478757e95..8008d17ea 100644
--- a/win/C#/Queue/QueueHandler.cs
+++ b/win/C#/Queue/QueueHandler.cs
@@ -204,8 +204,9 @@ namespace Handbrake.Queue
{
List<QueueItem> list = ser.Deserialize(strm) as List<QueueItem>;
- foreach (QueueItem item in list)
- queue.Add(item);
+ if (list != null)
+ foreach (QueueItem item in list)
+ queue.Add(item);
if (file != "hb_queue_recovery.xml")
write2disk("hb_queue_recovery.xml");