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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user