Comment 1 for bug 914240

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Since background is a pointer, it should have a NULL check before dereferencing.

if (background != NULL && !background->isNull()) {

}

would be an option, but I assume that QLabel::setPixmap would ignore null or empty pixmaps anyway.