Make sure mWearableItem/mNameEditor are valid before dereferencing them.
parent
dec4f9b4be
commit
57d36df3bc
|
|
@ -835,11 +835,11 @@ BOOL LLPanelEditWearable::isDirty() const
|
|||
BOOL isDirty = FALSE;
|
||||
if (mWearablePtr)
|
||||
{
|
||||
if (mWearablePtr->isDirty() ||
|
||||
mWearableItem->getName().compare(mNameEditor->getText()) != 0)
|
||||
{
|
||||
isDirty = TRUE;
|
||||
}
|
||||
if (mWearablePtr->isDirty() ||
|
||||
( mWearableItem && mNameEditor && mWearableItem->getName().compare(mNameEditor->getText()) != 0 ))
|
||||
{
|
||||
isDirty = TRUE;
|
||||
}
|
||||
}
|
||||
return isDirty;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue