From 4586fdd210b6e9f4eb04b35c6c0202d20cb959ea Mon Sep 17 00:00:00 2001 From: BoilTask Date: Fri, 25 Jul 2025 10:58:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E5=A2=9E=E5=8A=A0Cl?= =?UTF-8?q?ass=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UnLua/Source/UnLua/Private/ReflectionUtils/PropertyDesc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/UnLua/Source/UnLua/Private/ReflectionUtils/PropertyDesc.cpp b/Plugins/UnLua/Source/UnLua/Private/ReflectionUtils/PropertyDesc.cpp index 95ccc657..ed1f3e7e 100644 --- a/Plugins/UnLua/Source/UnLua/Private/ReflectionUtils/PropertyDesc.cpp +++ b/Plugins/UnLua/Source/UnLua/Private/ReflectionUtils/PropertyDesc.cpp @@ -271,7 +271,7 @@ class FObjectPropertyDesc : public FPropertyDesc explicit FObjectPropertyDesc(FProperty *InProperty, bool bSoftObject) : FPropertyDesc(InProperty), MetaClass(nullptr), IsSoftObject(bSoftObject) { - if (ObjectBaseProperty->PropertyClass->IsChildOf(UClass::StaticClass())) + if (ObjectBaseProperty->PropertyClass && ObjectBaseProperty->PropertyClass->IsChildOf(UClass::StaticClass())) { MetaClass = bSoftObject ? (((FSoftClassProperty*)Property)->MetaClass) : ((FClassProperty*)Property)->MetaClass; }