Skip to content

Commit 9431045

Browse files
committed
---
yaml --- r: 6683 b: refs/heads/tswast-patch-1 c: f78da9d h: refs/heads/master i: 6681: aee69c2 6679: 4c91df6
1 parent d6c5ca2 commit 9431045

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 7e052dae27b857ed3301e6aed83e41bd01d40e48
60+
refs/heads/tswast-patch-1: f78da9d7f3a4f069d05208384d9a53dbd59689df
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/FormatOptions.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.google.gcloud.bigquery;
1818

19+
import static com.google.common.base.Preconditions.checkNotNull;
20+
1921
import com.google.common.base.MoreObjects;
2022

2123
import java.io.Serializable;
@@ -85,7 +87,7 @@ public static FormatOptions datastoreBackup() {
8587
* Default options for the provided format.
8688
*/
8789
public static FormatOptions of(String format) {
88-
if (format.equals(CSV)) {
90+
if (checkNotNull(format).equals(CSV)) {
8991
return csv();
9092
}
9193
return new FormatOptions(format);

0 commit comments

Comments
 (0)