bulletproof for crasher #75407. r/sr=mcafee,waterson,shaver

This commit is contained in:
sspitzer%netscape.com 2001-04-10 17:44:53 +00:00
parent 69bb5e8462
commit aa5f4c86cf

View File

@ -433,6 +433,10 @@ nsImageBoxFrame::PaintImage(nsIPresContext* aPresContext,
#ifdef USE_IMG2
nsCOMPtr<imgIContainer> imgCon;
#ifdef DEBUG_pavlov
NS_ASSERTION(mImageRequest, "pav, fix me!");
#endif
if (!mImageRequest) return NS_ERROR_UNEXPECTED;
mImageRequest->GetImage(getter_AddRefs(imgCon));
if (imgCon) {