From 35e4947923a695ac7dac54f906d5272ea1d1cece Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Tue, 10 Apr 2001 17:44:53 +0000 Subject: [PATCH] bulletproof for crasher #75407. r/sr=mcafee,waterson,shaver --- layout/xul/base/src/nsImageBoxFrame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layout/xul/base/src/nsImageBoxFrame.cpp b/layout/xul/base/src/nsImageBoxFrame.cpp index d4b11aaa7be..ad4260cff0c 100644 --- a/layout/xul/base/src/nsImageBoxFrame.cpp +++ b/layout/xul/base/src/nsImageBoxFrame.cpp @@ -433,6 +433,10 @@ nsImageBoxFrame::PaintImage(nsIPresContext* aPresContext, #ifdef USE_IMG2 nsCOMPtr imgCon; +#ifdef DEBUG_pavlov + NS_ASSERTION(mImageRequest, "pav, fix me!"); +#endif + if (!mImageRequest) return NS_ERROR_UNEXPECTED; mImageRequest->GetImage(getter_AddRefs(imgCon)); if (imgCon) {