Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

NullReferenceException in SqlConnection.UseLocally

Aperta
#428 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@smoothdeveloper ci sta già lavorando.

Dal 23/6/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug
Issue Summary

I've run into a NullReferenceException internal to FSharp.Data.SqlClient.

To Reproduce

I'm not exactly sure of how to reproduce it but it's possibly caused by a timeout or database error.

Error
System.NullReferenceException: Object reference not set to an instance of an object. at
FSharp.Data.SqlClient.Internals.Extensions.SqlConnection.UseLocally(SqlConnection this, FSharpOption`1 privateConnection) at
<StartupCode$FSharp-Data-SqlClient>[email protected](Unit unitVar) at
Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 508
Expected behavior

I would expect to see a database error, not a null reference inside FSharp.Data.SqlClient.

What you can do
  • [] I am willing to contribute a PR with a unit test showcasing the issue
  • I am willing to test the bug fix before next release
Lingua principale
F#
Stelle
206
Fork
66
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fsprojects/FSharp.Data.SqlClient

Tutte le issue di fsprojects/FSharp.Data.SqlClient

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.