Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 5a4aa50

Browse files
committed
A null value is valid
When setting the javascript option "searching" to "false", the search value is null and throws an exception. Removing the validation makes it work properly. It is up to the dev to validate that the value has a value or is null.
1 parent 308fad6 commit 5a4aa50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataTables.Mvc/Search.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class Search
5050
/// <exception cref="System.ArgumentNullException">Thrown when the provided search value is null.</exception>
5151
public Search(string value, bool isRegexValue)
5252
{
53-
if (value == null) throw new ArgumentNullException("value", "The value of the search cannot be null. If there's no search performed, provide an empty string.");
53+
//if (value == null) throw new ArgumentNullException("value", "The value of the search cannot be null. If there's no search performed, provide an empty string.");
5454

5555
this.Value = value;
5656
this.IsRegexValue = isRegexValue;

0 commit comments

Comments
 (0)