From a02d83d76c5f252e9feeb4abf818a1c15490e913 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Sun, 26 Feb 2006 19:39:06 +0000 Subject: [PATCH] Bug 328298: crash when passing null to loadAndRegisterSheet, r+sr=dbaron --- layout/base/nsStyleSheetService.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/layout/base/nsStyleSheetService.cpp b/layout/base/nsStyleSheetService.cpp index 36a7126c1414..d6c3e6e88a8b 100644 --- a/layout/base/nsStyleSheetService.cpp +++ b/layout/base/nsStyleSheetService.cpp @@ -142,6 +142,7 @@ nsStyleSheetService::LoadAndRegisterSheet(nsIURI *aSheetURI, PRUint32 aSheetType) { NS_ENSURE_ARG(aSheetType == AGENT_SHEET || aSheetType == USER_SHEET); + NS_ENSURE_ARG_POINTER(aSheetURI); nsCOMPtr loader = do_CreateInstance(kCSSLoaderCID); nsCOMPtr sheet;