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

.NET GetJSON operation throws null reference exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.8
    • Fix Version/s: 1.3.0
    • Component/s: library
    • Labels:
      None

      Description

      "When I try to perform a GetJSON operation for a key that doesn't have any data associated with it, I get a null reference exception. Is this the expected behaviour? Looking at the source for the .NET client it seems that a null check is performed, but too late."

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+NCBC-306=message:NCBC-306

        Activity

        Hide
        jmorris Jeff Morris added a comment - - edited

        http://review.couchbase.org/#/c/29840/

        I am not sure if my implementation is sufficient...however, a null value will be returned by the GetJson method if it was set by the SetJson method. My concern is that is it valid to have a null document in a bucket? Also, the string "null" is what is what is returned by the server.

        Show
        jmorris Jeff Morris added a comment - - edited http://review.couchbase.org/#/c/29840/ I am not sure if my implementation is sufficient...however, a null value will be returned by the GetJson method if it was set by the SetJson method. My concern is that is it valid to have a null document in a bucket? Also, the string "null" is what is what is returned by the server.

          People

          • Assignee:
            jmorris Jeff Morris
            Reporter:
            jmorris Jeff Morris
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes