-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello SetText Error null #133
Comments
What is the question exactly ?, |
@onurcanbektas bang problem |
You might look into why the control's not loaded here, because that seems like more of a problem than the fact it's crashing. |
@twostars yes Can I get a skype address |
If m_pText_Message is nullptr it means the control's not loaded, which means either the UI needs updating or it's being used for a specialisation of a messagebox UI that isn't named the same. You don't show a callstack here so I can't tell which instance is theoretically being used here, and I don't recall if there were changes in the naming for this UI, but it should be fairly straightforward to find out. Checking if it's set stops it from crashing, but a messagebox without a message kind've defeats the purpose of said messagebox, so you should really find out why the control isn't attached here. |
Old
void CUIMessageBox::SetText(const std::string& szMsg)
{
m_pText_Message->SetString(szMsg);
}
void CUIMessageBox::SetTitle(const std::string& szTitle)
{
m_pText_Title->SetString(szTitle);
}
New now
void CUIMessageBox::SetText(const std::string& szMsg)
{
if (NULL == m_pText_Message)
return;
}
void CUIMessageBox::SetTitle(const std::string& szTitle)
{
if (NULL == m_pText_Title)
return;
}
Is it true? -now thanks <3
The text was updated successfully, but these errors were encountered: