Skip to content

Commit 43d9462

Browse files
committed
Initialize MetricsConnectionAttributes to empty array
Prevents potential NullReferenceException if metrics are recorded before the connection string is set.
1 parent 4aa1e01 commit 43d9462

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ internal bool IsClosed
279279
get { return _state == ConnectionState.Closed; }
280280
}
281281

282-
internal KeyValuePair<string, object>[] MetricsConnectionAttributes;
282+
internal KeyValuePair<string, object>[] MetricsConnectionAttributes = [];
283283

284284
#endregion
285285

0 commit comments

Comments
 (0)