diff --git a/gfx/2d/Factory.cpp b/gfx/2d/Factory.cpp index 8179b5ffee42..e4b23527acc9 100644 --- a/gfx/2d/Factory.cpp +++ b/gfx/2d/Factory.cpp @@ -933,7 +933,7 @@ RefPtr Factory::GetDWriteSystemFonts(bool aUpdate) { RefPtr systemFonts; HRESULT hr = mDWriteFactory->GetSystemFontCollection(getter_AddRefs(systemFonts)); - if (FAILED(hr)) { + if (FAILED(hr) || !systemFonts) { // only crash some of the time so those experiencing this problem // don't stop using Firefox if ((rand() & 0x3f) == 0) {