Adding check on ObjectCopy
Adding check on ObjectCopy

If the source or destination object are null, we should not pass the
pointer to memcpy as it is not sure whether memcpy(0,0,0) will succeed.

Change-Id: I4cea6146de2520c536d1ab5b304ac9afb66287b0

bmwcarit/capu,bmwcarit/capu