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

Commit d8f6e1b

Browse files
committed
Fix NRE in LoadList
1 parent 0c62cc2 commit d8f6e1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ServiceStack.OrmLite/Support/LoadList.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ public List<Into> ParentResults
3232

3333
protected LoadList(IDbCommand dbCmd, SqlExpression<From> expr)
3434
{
35-
this.dbCmd = dbCmd;
36-
this.expr = expr;
37-
3835
dialectProvider = OrmLiteConfig.DialectProvider;
36+
3937
if (expr == null)
4038
expr = dialectProvider.SqlExpression<From>();
4139

40+
this.dbCmd = dbCmd;
41+
this.expr = expr;
42+
4243
var sql = expr.SelectInto<Into>();
4344
parentResults = dbCmd.ExprConvertToList<Into>(sql);
4445

0 commit comments

Comments
 (0)