From 414f28e806cde1bcdbfee3e8d600d909e94e2235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Sat, 7 Jan 2017 11:51:22 +0100 Subject: [PATCH] Guard `processor` in `editorpanel.cc` (#3578) --- rtgui/editorpanel.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index 3a935788e..67850c545 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -235,12 +235,14 @@ private: #if !defined(__APPLE__) // monitor profile not supported on apple if (profileBox.get_active_row_number () > 0) { #endif - if (!noEvent) { - processor->beginUpdateParams (); - } - processor->setSoftProofing (softProof.get_sensitive() && softProof.get_active(), spGamutCheck.get_sensitive() && spGamutCheck.get_active()); - if (!noEvent) { - processor->endUpdateParams (rtengine::EvMonitorTransform); + if (processor) { + if (!noEvent) { + processor->beginUpdateParams (); + } + processor->setSoftProofing (softProof.get_sensitive() && softProof.get_active(), spGamutCheck.get_sensitive() && spGamutCheck.get_active()); + if (!noEvent) { + processor->endUpdateParams (rtengine::EvMonitorTransform); + } } #if !defined(__APPLE__) // monitor profile not supported on apple }