From: <svn...@op...> - 2009-04-09 21:11:45
|
Author: henrik Date: Thu Apr 9 23:11:41 2009 New Revision: 5570 URL: http://www.opensync.org/changeset/5570 Log: Add error checking for NS_NewNativeLocalFile Modified: plugins/mozilla-sync/trunk/src/mozilla-xpcom.cpp Modified: plugins/mozilla-sync/trunk/src/mozilla-xpcom.cpp ============================================================================== --- plugins/mozilla-sync/trunk/src/mozilla-xpcom.cpp Thu Apr 9 22:41:48 2009 (r5569) +++ plugins/mozilla-sync/trunk/src/mozilla-xpcom.cpp Thu Apr 9 23:11:41 2009 (r5570) @@ -232,6 +232,7 @@ nsCOMPtr<nsILocalFile> localFileGreComponents; rv = NS_NewNativeLocalFile(csGreComponents, PR_TRUE, getter_AddRefs(localFileGreComponents)); + if (NS_FAILED(rv)) LOG(0, "Could not get NewNativeLocalFile for GRE components"); rv=registrar->AutoRegister(localFileGreComponents); //MOZ_ERROR_CHECK_FALSE(rv, "AutoRegister"); if (NS_FAILED(rv)) LOG(0, "AutoRegister failed. Continuing anyway..."); |