Skip to content

Commit

Permalink
#140 fixed NRE issue when ordering (#142)
Browse files Browse the repository at this point in the history
Co-authored-by: Emrah Kondur <emrah.kondur@invicti.com>
  • Loading branch information
ekondur and Emrah Kondur authored Aug 22, 2024
1 parent a4c6ef9 commit b5e9c28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DatatableJS.Net/Builders/OrderBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public OrderBuilder<T> Add<TProp>(Expression<Func<T, TProp>> property, OrderBy o
var propertyName = ExpressionHelpers<T>.PropertyName(property);

var column = _grid._columns
.Where(c => c.Data.Equals(propertyName))
.Where(c => c.Data != null && c.Data.Equals(propertyName))
.FirstOrDefault();

if (column == null)
Expand Down
2 changes: 1 addition & 1 deletion DatatableJS/Builders/OrderBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public OrderBuilder<T> Add<TProp>(Expression<Func<T, TProp>> property, OrderBy o
var propertyName = ExpressionHelpers<T>.PropertyName(property);

var column = _grid._columns
.Where(c => c.Data.Equals(propertyName))
.Where(c => c.Data != null && c.Data.Equals(propertyName))
.FirstOrDefault();

if (column == null)
Expand Down

0 comments on commit b5e9c28

Please sign in to comment.