mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-01-11 20:31:04 +03:00
Null pointer access has been fixed
This commit is contained in:
parent
9ab3cb5803
commit
322ded3659
@ -520,8 +520,11 @@ QString ScriptEngineManager::expandDataFields(QString context, ExpandType expand
|
|||||||
context.replace(rx.cap(0),fieldValue);
|
context.replace(rx.cap(0),fieldValue);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
QString error = QString("Field %1 not found in %2 !!! ").arg(field).arg(reportItem->objectName());
|
QString error;
|
||||||
dataManager()->putError(error);
|
if (reportItem){
|
||||||
|
error = QString("Field %1 not found in %2 !!! ").arg(field).arg(reportItem->objectName());
|
||||||
|
dataManager()->putError(error);
|
||||||
|
}
|
||||||
varValue = QVariant();
|
varValue = QVariant();
|
||||||
if (!dataManager()->reportSettings() || !dataManager()->reportSettings()->suppressAbsentFieldsAndVarsWarnings())
|
if (!dataManager()->reportSettings() || !dataManager()->reportSettings()->suppressAbsentFieldsAndVarsWarnings())
|
||||||
context.replace(rx.cap(0),error);
|
context.replace(rx.cap(0),error);
|
||||||
|
Loading…
Reference in New Issue
Block a user