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 c9384071 authored by Boudewijn Rempt's avatar Boudewijn Rempt

BUG:345183 Check pointer before dereferencing, not after

parent 5ccc0c53
......@@ -127,8 +127,9 @@ QByteArray KisColord::deviceProfile(const QString &id, int p)
break;
}
}
if (dev->profiles.size() > 0) {
if (dev) {
if (dev) {
if (dev->profiles.size() > 0) {
if (dev->profiles.size() < p) {
profile = dev->profiles[p];
}
......
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