Skip to content

Commit c4c7716

Browse files
authored
Apply suggestions from code review
1 parent 3392254 commit c4c7716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Type/AbstractStringType.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public override void Set(DbCommand cmd, object value, int index, ISessionImpleme
6767
// set the parameter value before the size check, since ODBC changes the size automatically
6868
parameter.Value = value;
6969

70-
if (parameter.Size > 0 && value != null && ((string) value).Length > parameter.Size)
70+
if (parameter.Size > 0 && ((string)value).Length > parameter.Size)
7171
throw new HibernateException("The length of the string value exceeds the length configured in the mapping/parameter.");
7272
}
7373

0 commit comments

Comments
 (0)