Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException in FbConnectionPoolManager.Release [DNET717] #666

Closed
firebird-automations opened this issue Nov 17, 2016 · 6 comments

Comments

@firebird-automations
Copy link

Submitted by: Fatal Error (fatalerror)

Is related to DNET698

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.

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Can you provide a full stack trace? Or a test case?

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Commented by: Fatal Error (fatalerror)

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

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Link: This issue is related to DNET698 [ DNET698 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: vNext - Finalizers [ 10807 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Fix Version: vNext [ 10804 ]

Fix Version: vNext - Finalizers [ 10807 ] =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants