diff --git a/toolkit/xre/glxtest.cpp b/toolkit/xre/glxtest.cpp index c751989a6453..ab6533d070a1 100644 --- a/toolkit/xre/glxtest.cpp +++ b/toolkit/xre/glxtest.cpp @@ -541,7 +541,8 @@ static bool get_gles_status(EGLDisplay dpy, EGL_TRUE) { const char* deviceExtensions = eglQueryDeviceStringEXT(device, EGL_EXTENSIONS); - if (strstr(deviceExtensions, "EGL_MESA_device_software")) { + if (deviceExtensions && + strstr(deviceExtensions, "EGL_MESA_device_software")) { record_value("MESA_ACCELERATED\nFALSE\n"); } else { #ifdef MOZ_WAYLAND