add null check code for prevent
authorGwangbok Kim <gwangbok.kim@samsung.com>
Wed, 3 Apr 2013 12:33:03 +0000 (21:33 +0900)
committerGwangbok Kim <gwangbok.kim@samsung.com>
Wed, 3 Apr 2013 12:33:03 +0000 (21:33 +0900)
Change-Id: I45302653a9171e547003026f26b22f083b216b44
Signed-off-by: Gwangbok Kim <gwangbok.kim@samsung.com>
src/FScl_UserProfileImpl.cpp

index 2204c8e..608ac6a 100644 (file)
@@ -132,6 +132,11 @@ _UserProfileImpl::Equals(const Object& rhs) const
 {
        const _UserProfileImpl* pRhs = dynamic_cast<const _UserProfileImpl*>(&rhs);
 
+       if (pRhs == null)
+       {
+               return false;
+       }
+
        //compare single value properties
        if (this->GetValue(USER_PROFILE_PROPERTY_ID_FIRST_NAME) != pRhs->GetValue(USER_PROFILE_PROPERTY_ID_FIRST_NAME))
        {