未验证 提交 a0e46a82 编写于 作者: O openharmony_ci 提交者: Gitee

!871 告警修复

Merge pull request !871 from Zhouyj/cppCheck_3
......@@ -96,10 +96,11 @@ const GlyphNode* GlyphsManager::GetGlyphNodeFromFiles(uint32_t unicode, uint16_t
}
GlyphCacheNode* cacheNode = UIFontCacheManager::GetInstance()->GetNodeCacheSpace(unicode, fontId);
if (cacheNode != nullptr) {
cacheNode->node = nodeInfo;
cacheNode->cacheType = fileType_;
if (cacheNode == nullptr) {
return nullptr;
}
cacheNode->node = nodeInfo;
cacheNode->cacheType = fileType_;
return &(cacheNode->node);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册