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 89f34f562a
commit 2f197d65ec

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);
}