Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1350

DefaultValueHandling.IgnoreAndPopulate Causes NRE With Bad Query Syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.4.4
    • 2.4.0
    • library
    • None

    Description

      Steps to reproduce:

      1. Configure client to use DefaultSerializer with DeserializerSettings.DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate
      2. Execute a N1QL query with bad syntax
      3. Receive NRE

      System.ArgumentNullException: Value cannot be null.
      Parameter name: source
      at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
      at Couchbase.N1QL.QueryResultData`1.ToQueryResult() in C:\Users\bburnett\Source\Repos\couchbase-net-client\Src\Couchbase\N1QL\QueryResult.cs:line 209
      at Couchbase.N1QL.QueryClient.<ExecuteQueryAsync>d__20`1.MoveNext() in C:\Users\bburnett\Source\Repos\couchbase-net-client\Src\Couchbase\N1QL\QueryClient.cs:line 396

      From forum post:
      https://forums.couchbase.com/t/internal-error-exception-when-an-n1ql-error-request-is-sent/11925

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            btburnett3 Brant Burnett
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty