Really add safe check for targetDisplayPLugin

This commit is contained in:
Sam Gateau 2018-07-03 16:59:40 +02:00
parent 3f975cfa84
commit 96b26c94eb

View file

@ -2722,7 +2722,7 @@ void Application::initializeDisplayPlugins() {
setDisplayPlugin(defaultDisplayPlugin);
// Now set the desired plugin if it's not the same as the default plugin
if (!targetDisplayPlugin && (targetDisplayPlugin != defaultDisplayPlugin)) {
if (targetDisplayPlugin && (targetDisplayPlugin != defaultDisplayPlugin)) {
setDisplayPlugin(targetDisplayPlugin);
}