Skip to content

Commit 68510aa

Browse files
committed
Proper check as in other handles
1 parent 1cf548d commit 68510aa

File tree

1 file changed

+3
-0
lines changed
  • Provider/src/FirebirdSql.Data.FirebirdClient/Client/Native/Handle

1 file changed

+3
-0
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Client/Native/Handle/BlobHandle.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
//$Authors = Hennadii Zabula
1717

1818
using System;
19+
using System.Diagnostics.Contracts;
1920
using FirebirdSql.Data.Common;
2021

2122
namespace FirebirdSql.Data.Client.Native.Handle
@@ -25,6 +26,8 @@ public class BlobHandle : FirebirdHandle
2526
{
2627
protected override bool ReleaseHandle()
2728
{
29+
Contract.Requires(FbClient != null);
30+
2831
if (IsClosed)
2932
{
3033
return true;

0 commit comments

Comments
 (0)