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) {