Bug 421074

Summary: Checking if pointers are null after using it in KoColorConversionSystem.cpp
Product: [Applications] krita Reporter: Rafał Mikrut <mikrutrafal>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rafał Mikrut 2020-05-05 19:54:42 UTC
```c
     if (*srcColorSpace == *dstColorSpace) {
        return new KoCopyColorConversionTransformation(srcColorSpace);
    }
    Q_ASSERT(srcColorSpace);
    Q_ASSERT(dstColorSpace);

```


https://invent.kde.org/kde/krita/-/blob/master/libs/pigment/KoColorConversionSystem.cpp#L236-240
Comment 1 Halla Rempt 2020-05-06 08:12:11 UTC
Git commit c89a655663c34cca2d6989e8bb5aaf7b421ca0b9 by Boudewijn Rempt.
Committed on 06/05/2020 at 08:08.
Pushed by rempt into branch 'krita/4.3'.

Check pointer before use

M  +2    -2    libs/pigment/KoColorConversionSystem.cpp

https://invent.kde.org/kde/krita/commit/c89a655663c34cca2d6989e8bb5aaf7b421ca0b9