Skip to content

Commit f02ca52

Browse files
committed
Comment cloning only if comment is not null
1 parent b852fb7 commit f02ca52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Orm/Xtensive.Orm/Sql/Dml/Statements/SqlSelect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ internal override object Clone(SqlNodeCloneContext context)
217217
clone.Limit = Limit;
218218
clone.Offset = Offset;
219219
clone.Lock = Lock;
220-
clone.Comment = (SqlComment)Comment.Clone(context);
220+
clone.Comment = (SqlComment) Comment?.Clone(context);
221221

222222
if (Hints.Count > 0)
223223
foreach (SqlHint hint in Hints)

0 commit comments

Comments
 (0)