From 6c691c91b81496e64cbcd101cb20706bc7def7b9 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Mon, 13 Jan 2020 20:47:50 +0100 Subject: [PATCH] VideoDialog: don't crash if Console is not allocated. --- src/gui/VideoDialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/VideoDialog.cxx b/src/gui/VideoDialog.cxx index 17201cea6..12ae65bbd 100644 --- a/src/gui/VideoDialog.cxx +++ b/src/gui/VideoDialog.cxx @@ -478,7 +478,7 @@ void VideoDialog::saveConfig() // TV scanline intensity instance().settings().setValue("tv.scanlines", myTVScanIntense->getValueLabel()); - instance().console().setTIAProperties(); + if (&instance().console()) instance().console().setTIAProperties(); // Finally, issue a complete framebuffer re-initialization... instance().createFrameBuffer();