SVN commit 1020547 by piggz: Dont crash if set ptr is null M +4 -2 kexiquerydesignerguieditor.cpp --- trunk/koffice/kexi/plugins/queries/kexiquerydesignerguieditor.cpp #1020546:1020547 @@ -1592,10 +1592,12 @@ KexiDB::BinaryExpr be(KexiDBExpr_Relational, 0, token, 0); tokenStr = be.tokenToString() + " "; } - (*set)["criteria"] = tokenStr + e->toString(); //print it prettier + if (set) { + (*set)["criteria"] = tokenStr + e->toString(); //print it prettier + } //this is just checking: destroy expr. object delete e; - } else if (str.isEmpty()) { + } else if (set && str.isEmpty()) { (*set)["criteria"] = QVariant(); //clear it } setDirty(true);