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

ASSERTION: imgLoader::LoadImage -- NULL URI pointer: 'aURI'


git-svn-id: svn://10.0.0.236/trunk@128754 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de 2002-09-03 22:49:51 +00:00
parent 23677f1f3e
commit 281964d562
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;