Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-1275

NPE when using FTS `term` query without specifying `fuzziness` or `prefixLength`

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.4.6
    • 2.4.5
    • None
    • None
    • 0

    Description

      Suggested release note:

      Fixed a regression in Couchbase Java SDK 3.4.5 and Scala SDK 1.4.5 that caused Full Text Search `term` queries to throw `NullPointerException` unless `prefixLength` and `fuzziness` were specified.

      To reproduce:

      cluster.searchQuery("foo", SearchQuery.term("foo"));
      

      Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "this.fuzziness" is null
      	at com.couchbase.client.core.api.search.queries.CoreTermQuery.injectParams(CoreTermQuery.java:53)
      	at com.couchbase.client.core.api.search.CoreSearchQuery.export(CoreSearchQuery.java:44)
      

      Attachments

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

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty