bug 151983 patch by bernd.mielke@snafu.de r=paper sr=tor

ASSERTION: imgLoader::LoadImage -- NULL URI pointer: 'aURI'
This commit is contained in:
cbiesinger%web.de 2002-09-03 22:49:51 +00:00
parent cb32b91b45
commit 15fb039188
2 changed files with 10 additions and 4 deletions

View File

@ -1990,9 +1990,12 @@ nsImageFrame::RealLoadImage(const nsAString& aSpec, nsIPresContext *aPresContext
/* get the URI, convert internal-gopher-stuff if needed */
nsCOMPtr<nsIURI> uri;
GetURI(aSpec, getter_AddRefs(uri));
if (!uri)
if (!uri) {
if (!realURI)
return NS_ERROR_FAILURE;
uri = realURI;
}
/* set this back to FALSE before we do the real load */
mInitialLoadCompleted = PR_FALSE;

View File

@ -1990,9 +1990,12 @@ nsImageFrame::RealLoadImage(const nsAString& aSpec, nsIPresContext *aPresContext
/* get the URI, convert internal-gopher-stuff if needed */
nsCOMPtr<nsIURI> uri;
GetURI(aSpec, getter_AddRefs(uri));
if (!uri)
if (!uri) {
if (!realURI)
return NS_ERROR_FAILURE;
uri = realURI;
}
/* set this back to FALSE before we do the real load */
mInitialLoadCompleted = PR_FALSE;