dk2k commented on code in PR #9802: URL: https://github.com/apache/camel/pull/9802#discussion_r1156921200
########## components/camel-couchbase/src/main/java/org/apache/camel/component/couchbase/CouchbaseConsumer.java: ########## @@ -87,7 +87,7 @@ protected void doInit() { String rangeStartKey = endpoint.getRangeStartKey(); String rangeEndKey = endpoint.getRangeEndKey(); - if ("".equals(rangeStartKey) || "".equals(rangeEndKey)) { + if (rangeStartKey.isEmpty() || rangeEndKey.isEmpty()) { Review Comment: True, but are nulls possible in them? I ask because previously the code would let two nulls (not the case if only one of them is null) into viewOptions in the line below: viewOptions.startKey(rangeEndKey).endKey(rangeEndKey); Will add null checks anyway -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org