Skip to content

Commit

Permalink
fix(CandidateList): null pointer error
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Jan 2, 2025
1 parent 150c560 commit 588a31f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WeaselTSF/CandidateList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ HRESULT CCandidateList::_UpdateUIElement() {

void CCandidateList::StartUI() {
com_ptr<ITfThreadMgr> pThreadMgr = _tsf->_GetThreadMgr();
if (!pThreadMgr) {
return;
}

com_ptr<ITfUIElementMgr> pUIElementMgr;
auto hr = pThreadMgr->QueryInterface(&pUIElementMgr);
if (FAILED(hr))
Expand Down

0 comments on commit 588a31f

Please sign in to comment.