From bae5e3795ecaf8dee7f2a48e2e8c2ebaae9786e8 Mon Sep 17 00:00:00 2001 From: Anthony Lavado Date: Thu, 26 Sep 2019 09:47:48 -0400 Subject: [PATCH] Fix SetImage to avoid out of range exception (#1798) * Fix SetImage to avoid out of range exception * Actually use the new images we've retrieved --- MediaBrowser.Controller/Entities/BaseItem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 369f63b13..c3dc6f7f2 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -2238,8 +2238,8 @@ namespace MediaBrowser.Controller.Entities var currentCount = current.Length; var newArr = new ItemImageInfo[currentCount + 1]; current.CopyTo(newArr, 0); - current[currentCount] = image; - ImageInfos = current; + newArr[currentCount] = image; + ImageInfos = newArr; } }