Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 3859551

Browse files
author
李孟宁
authored
Fix NullRefrenceException. (#660)
In multi thread environment, run AutoQuery.CreateQuery method with the same From Type will cause null reference.
1 parent 1f4e1fc commit 3859551

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ServiceStack.OrmLite/Expressions/SqlExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ private SqlExpression<T> OrderByFields(string orderBySuffix, FieldDefinition[] f
934934
foreach (var field in fields)
935935
{
936936
var tableDef = GetModelDefinition(field);
937-
var qualifiedName = modelDef != null
937+
var qualifiedName = tableDef != null
938938
? GetQuotedColumnName(tableDef, field.Name)
939939
: DialectProvider.GetQuotedColumnName(field);
940940

0 commit comments

Comments
 (0)