Skip to content

Commit 3129263

Browse files
committed
Initialize args array in NHibernateLogValues.
Serilog wasn't handling the null argument case correctly.
1 parent 82ded5d commit 3129263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Logging.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public struct NHibernateLogValues
212212
public NHibernateLogValues(string format, object[] args)
213213
{
214214
_format = format ?? "[Null]";
215-
_args = args;
215+
_args = args ?? Array.Empty<object>();
216216
}
217217

218218
/// <summary>

0 commit comments

Comments
 (0)