Closed kegechen closed 3 months ago
关键摘要:
m_dsgConfig
为nullptr
,则访问m_dsgConfig->value(RULES_KEY)
将会抛出异常。是否建议立即修改:
建议的修改:
m_dsgConfig->value(RULES_KEY)
之前,应该检查m_dsgConfig
是否为nullptr
,以避免潜在的空指针异常。可以添加一个条件判断if (m_dsgConfig)
来确保m_dsgConfig
不为nullptr
。[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: kegechen, zccrs
The full list of commands accepted by this bot can be found here.
fallback to default dsgconfig value