Fix CacheProperty not resetting Exception state when it has arguments

This commit is contained in:
Sinai 2021-05-29 14:50:21 +10:00
parent 342fc6bdb8
commit 773900d749

View File

@ -28,10 +28,11 @@ namespace UnityExplorer.UI.CacheObject
{ {
try try
{ {
object ret;
if (HasArguments) if (HasArguments)
return PropertyInfo.GetValue(DeclaringInstance, this.Evaluator.TryParseArguments()); ret = PropertyInfo.GetValue(DeclaringInstance, this.Evaluator.TryParseArguments());
else
var ret = PropertyInfo.GetValue(DeclaringInstance, null); ret = PropertyInfo.GetValue(DeclaringInstance, null);
HadException = false; HadException = false;
LastException = null; LastException = null;
return ret; return ret;