mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 12:34:39 +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);
|
||||
|
||||
} else {
|
||||
QString error = QString("Field %1 not found in %2 !!! ").arg(field).arg(reportItem->objectName());
|
||||
dataManager()->putError(error);
|
||||
QString error;
|
||||
if (reportItem){
|
||||
error = QString("Field %1 not found in %2 !!! ").arg(field).arg(reportItem->objectName());
|
||||
dataManager()->putError(error);
|
||||
}
|
||||
varValue = QVariant();
|
||||
if (!dataManager()->reportSettings() || !dataManager()->reportSettings()->suppressAbsentFieldsAndVarsWarnings())
|
||||
context.replace(rx.cap(0),error);
|
||||
|
Loading…
Reference in New Issue
Block a user