Skip to content
Snippets Groups Projects
Commit 42210fbe authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix crash from null preview avatar..

parent 9489474d
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -3049,7 +3049,7 @@ void LLModelPreview::stateChangedCallback(U32 state, void* opaque)
LLJoint* LLModelPreview::lookupJointByName(const std::string& str, void* opaque)
{
LLModelPreview* pPreview = static_cast< LLModelPreview* >(opaque);
if (pPreview)
if (pPreview && pPreview->getPreviewAvatar())
{
return pPreview->getPreviewAvatar()->getJoint(str);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment