Added NULL pointer checking, since netlib returns NULL even though return

value said it succeeded.


git-svn-id: svn://10.0.0.236/trunk@32744 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
erik%netscape.com
1999-05-26 22:06:51 +00:00
parent 091ce91816
commit 1a2da74509

View File

@@ -83,6 +83,13 @@ nsStringBundle::nsStringBundle(nsIURL* aURL, nsILocale* aLocale,
#endif
return;
}
if (!in) {
#ifdef NS_DEBUG
printf("OpenBlockingStream returned success value, but pointer is NULL\n");
#endif
*aResult = NS_ERROR_UNEXPECTED;
return;
}
*aResult = nsComponentManager::CreateInstance(kPersistentPropertiesCID, NULL,
kIPersistentPropertiesIID, (void**) &mProps);
if (NS_FAILED(*aResult)) {