From dfcbcda8ae3cb5ce9f4aea678a20931f2456b810 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Tue, 29 Jul 2003 22:38:51 +0000 Subject: [PATCH] Bug #214336 --> fix a thunderbird crash in libmime. Add a null ptr check on the pref's service. Thanks to Calum Mackay for the fix. r/sr=mscott git-svn-id: svn://10.0.0.236/trunk@145355 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/mime/src/mimei.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/mailnews/mime/src/mimei.cpp b/mozilla/mailnews/mime/src/mimei.cpp index 7ca060cbb84..564b7cabcdb 100644 --- a/mozilla/mailnews/mime/src/mimei.cpp +++ b/mozilla/mailnews/mime/src/mimei.cpp @@ -453,7 +453,8 @@ mime_find_class (const char *content_type, MimeHeaders *hdrs, // it is faster to read the pref first then figure out the msg hdr for the current url only if we have to // XXX instead of reading this pref every time, part of mime should be an observer listening to this pref change // and updating internal state accordingly. But none of the other prefs in this file seem to be doing that...=( - pref->GetBoolPref("mailnews.display.sanitizeJunkMail", &sanitizeJunkMail); + if (pref) + pref->GetBoolPref("mailnews.display.sanitizeJunkMail", &sanitizeJunkMail); if (sanitizeJunkMail) {