2. add if code and return NS_ERROR_NULL_POINTER if the ptr is null 3. add code to check return value r=myself git-svn-id: svn://10.0.0.236/trunk@50984 18797224-902f-48f8-a5cc-f745e15eee43