Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-338

NPE when supplying empty bucket password when one is configured on server

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.7
    • Fix Version/s: 1.1.9
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      The following null pointer is thrown when trying to get a bucket but password is missing in the client configuration:

      java.lang.NullPointerException
      at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration:148
      at com.couchbase.client.CouchbaseConnectionFactory.getVBucketConfig:231
      at com.couchbase.client.CouchbaseClient.<init>:237

      Should probably throw a proper exception saying that credentials or not correct or missing password or something similar.

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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            daschl Michael Nitschinger
            Reporter:
            perry Perry Krug
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes