From ba0101374ecc1a19f60627ed92e687fe8695763a Mon Sep 17 00:00:00 2001 From: Tiberiu Chibici Date: Sat, 11 Oct 2014 10:32:01 +0300 Subject: [PATCH] Fix for property class --- RainmeterStudio.Core/Model/Property.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/RainmeterStudio.Core/Model/Property.cs b/RainmeterStudio.Core/Model/Property.cs index ccb1ec2c..badc7897 100644 --- a/RainmeterStudio.Core/Model/Property.cs +++ b/RainmeterStudio.Core/Model/Property.cs @@ -61,7 +61,13 @@ namespace RainmeterStudio.Core.Model set { // Test if type changed - bool typeChanged = (_value.GetType() != value.GetType()); + bool typeChanged; + + if (_value == null || value == null) + typeChanged = (_value != null) || (value != null); + + else + typeChanged = (_value.GetType() != value.GetType()); // Set value _value = value;