diff --git a/backend/mirai-console/src/data/AbstractPluginData.kt b/backend/mirai-console/src/data/AbstractPluginData.kt index 6bbc507a4..a6f3ed4d1 100644 --- a/backend/mirai-console/src/data/AbstractPluginData.kt +++ b/backend/mirai-console/src/data/AbstractPluginData.kt @@ -161,7 +161,7 @@ public fun AbstractPluginData.findBackingFieldValue(property: KProperty): @ConsoleExperimentalApi public fun AbstractPluginData.findBackingFieldValue(propertyValueName: String): Value? { @Suppress("UNCHECKED_CAST") - return this.valueNodes.find { it.valueName == propertyValueName }?.value as Value + return this.valueNodes.find { it.valueName == propertyValueName }?.value as Value? } /**