Issue Details (XML | Word | Printable)

Key: DNET-717
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Fatal Error
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

NullReferenceException in FbConnectionPoolManager.Release

Created: 17/Nov/16 03:25 AM   Updated: 21/Feb/17 07:47 AM
Component/s: ADO.NET Provider
Affects Version/s: 5.6.0.0
Fix Version/s: 5.8.0.0

Issue Links:
Relate
 


 Description  « Hide
I am getting a null reference exception in:

internal void Release(FbConnectionInternal connection)
{
    this.CheckDisposed();
    this._pools.GetOrAdd(connection.Options.NormalizedConnectionString, (string _) => new FbConnectionPoolManager.Pool(connection.Options)).ReleaseConnection(connection);
}

Running the code in a debugger shows that connection.Options is null. I think it should be connection.NormalizedConnectionString instead.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jiri Cincura added a comment - 10/Jan/17 10:44 AM
Can you provide a full stack trace? Or a test case?

Fatal Error added a comment - 11/Jan/17 02:33 AM
I am using a ORM so I don't know how to replicate it but the following is a stack trace:

FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnectionPoolManager.Release(FirebirdSql.Data.FirebirdClient.FbConnectionInternal connection) Line 228 C#
  FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnection.Close() Line 570 C#
> FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbConnection.Dispose(bool disposing) Line 297 C#
  System.dll!System.ComponentModel.Component.~Component() Unknown