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

This commit is contained in:
wmayer
2022-08-01 11:51:53 +02:00
committed by Uwe
parent 67682e2bb3
commit 3a424136ff
+1 -1
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);
}