Change-Id: Idcd39862e5edb51433795a9e9632a21ee7f6270d
Signed-off-by: Minjae Lee <minjae17.lee@samsung.com>
{
if (this != &rhs)
{
- *__pSimInfoImpl = *rhs.__pSimInfoImpl;
+ if (rhs.__pSimInfoImpl != null)
+ {
+ if (__pSimInfoImpl != null)
+ {
+ *__pSimInfoImpl = *rhs.__pSimInfoImpl;
+ }
+ else
+ {
+ __pSimInfoImpl = new (std::nothrow) _SimInfoImpl(*rhs.__pSimInfoImpl);
+ }
+ }
+ else
+ {
+ delete __pSimInfoImpl;
+ __pSimInfoImpl = null;
+ }
}
return *this;