From 3ce409a1b2a0ac322b39bd134b10f62d3c3a8150 Mon Sep 17 00:00:00 2001 From: Nikolay Kuznetsov Date: Fri, 8 Jan 2021 23:04:58 +0100 Subject: [PATCH] FC: fix an exception in custom picker --- FavCat/CustomLists/CustomPicker.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FavCat/CustomLists/CustomPicker.cs b/FavCat/CustomLists/CustomPicker.cs index 1d362d0..56cce48 100644 --- a/FavCat/CustomLists/CustomPicker.cs +++ b/FavCat/CustomLists/CustomPicker.cs @@ -106,7 +106,8 @@ private void OnEnable() private void OnDisable() { - myImage.texture = null; + if (myImage != null) + myImage.texture = null; } } } \ No newline at end of file