From e5d35e56eed98a04cc542281693b1b72ae52ec32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E5=B9=BF=E5=B9=BF?= <34500722+LuGuangguang@users.noreply.github.com> Date: Wed, 25 Aug 2021 10:00:09 +0800 Subject: [PATCH] Update Tile.cs Avoid the 'Object reference not set to an instance of an object.' error --- Yugen.Mosaic.Uwp/Models/Tile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Yugen.Mosaic.Uwp/Models/Tile.cs b/Yugen.Mosaic.Uwp/Models/Tile.cs index 1ac3899..99b72bf 100644 --- a/Yugen.Mosaic.Uwp/Models/Tile.cs +++ b/Yugen.Mosaic.Uwp/Models/Tile.cs @@ -40,8 +40,8 @@ public void Process(Size tileSize, IRandomAccessStream RandomAccessStream) public void Dispose() { - ResizedImage.Dispose(); + ResizedImage?.Dispose(); ResizedImage = null; } } -} \ No newline at end of file +}