We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aef8fc4 commit 417c422Copy full SHA for 417c422
google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClient.java
@@ -234,7 +234,7 @@ public final BatchRequest batch() {
234
public final BatchRequest batch(HttpRequestInitializer httpRequestInitializer) {
235
BatchRequest batch =
236
new BatchRequest(getRequestFactory().getTransport(), httpRequestInitializer);
237
- if (batchPath.length() == 0) {
+ if (Strings.isNullOrEmpty(batchPath)) {
238
batch.setBatchUrl(new GenericUrl(getRootUrl() + "batch"));
239
} else {
240
batch.setBatchUrl(new GenericUrl(getRootUrl() + batchPath));
0 commit comments