Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c01502c9 authored by Rafał Mikrut's avatar Rafał Mikrut Committed by Agata Cacko

Check if pointer is null before using it

parent cae28b09
......@@ -245,9 +245,9 @@ KoColorConversionTransformation* KoColorConversionSystem::createColorConverter(c
nodeFor(dstColorSpace));
Q_ASSERT(path.length() > 0);
KoColorConversionTransformation* transfo = createTransformationFromPath(path, srcColorSpace, dstColorSpace, renderingIntent, conversionFlags);
Q_ASSERT(transfo);
Q_ASSERT(*transfo->srcColorSpace() == *srcColorSpace);
Q_ASSERT(*transfo->dstColorSpace() == *dstColorSpace);
Q_ASSERT(transfo);
return transfo;
}
......
Markdown is supported
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