Skip to content

Commit bb0f07f

Browse files
Fix a null reference exception in case of factory build failure
Introduced by Firebird fix for dropping schema.
1 parent e8fb9a0 commit bb0f07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate.Test/TestCase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ protected virtual void CreateSchema()
276276

277277
protected virtual void DropSchema()
278278
{
279-
if (Sfi.ConnectionProvider.Driver is FirebirdClientDriver fbDriver)
279+
if (Sfi?.ConnectionProvider.Driver is FirebirdClientDriver fbDriver)
280280
{
281281
// Firebird will pool each connection created during the test and will marked as used any table
282282
// referenced by queries. It will at best delays those tables drop until connections are actually

0 commit comments

Comments
 (0)