Commit 17a635d9 authored by Halla Rempt's avatar Halla Rempt
Browse files

Check pointer before dereferencing

BUG:445329
(cherry picked from commit ea9b990a)
parent 333c5165
Pipeline #203162 canceled with stage
in 26 minutes and 2 seconds
......@@ -508,6 +508,10 @@ KisProofingConfigurationSP KisImageConfig::defaultProofingconfiguration()
void KisImageConfig::setDefaultProofingConfig(const KoColorSpace *proofingSpace, int proofingIntent, bool blackPointCompensation, KoColor warningColor, double adaptationState)
{
if (!proofingSpace || !proofingSpace->profile()) {
return;
}
m_config.writeEntry("defaultProofingProfileName", proofingSpace->profile()->name());
m_config.writeEntry("defaultProofingProfileModel", proofingSpace->colorModelId().id());
m_config.writeEntry("defaultProofingProfileDepth", proofingSpace->colorDepthId().id());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment