diff --git a/MMDVMHost.cpp b/MMDVMHost.cpp index b2faa0d..6b495db 100644 --- a/MMDVMHost.cpp +++ b/MMDVMHost.cpp @@ -1144,6 +1144,12 @@ void CMMDVMHost::createDisplay() m_display = new CNullDisplay; } + if (m_display == NULL) { + LogWarning("No valid display found, disabling"); + m_display = new CNullDisplay; + return; + } + bool ret = m_display->open(); if (!ret) { delete m_display;