Spreadsheet: fixes #7285: [Bug] FreeCAD crashes if cell value ' is set in Spreadsheet

This commit is contained in:
wmayer
2022-08-01 08:09:34 +02:00
parent c61ca0d0a7
commit fd6dc844be

View File

@@ -370,7 +370,7 @@ void Cell::setContent(const char * value)
}
}
if (!newExpr && *value != '\0') {
if (!newExpr && value && *value != '\0') {
newExpr = std::make_unique<App::StringExpression>(owner->sheet(), value);
}