summaryrefslogtreecommitdiff
path: root/indra/newview/llpaneleditwearable.cpp
diff options
context:
space:
mode:
authorNicky <none@none>2012-08-21 19:47:16 +0200
committerNicky <none@none>2012-08-21 19:47:16 +0200
commit57d36df3bc3c601d87dcf35a4e6692e1ae4d65ff (patch)
tree027934f6d2436ada7a01ba70e9b0334cf212b7b6 /indra/newview/llpaneleditwearable.cpp
parentdec4f9b4be6936ad4b342eb6030c740359713f06 (diff)
Make sure mWearableItem/mNameEditor are valid before dereferencing them.
Diffstat (limited to 'indra/newview/llpaneleditwearable.cpp')
-rw-r--r--indra/newview/llpaneleditwearable.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llpaneleditwearable.cpp b/indra/newview/llpaneleditwearable.cpp
index d58d6d536c..d42056ef9d 100644
--- a/indra/newview/llpaneleditwearable.cpp
+++ b/indra/newview/llpaneleditwearable.cpp
@@ -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;
}