We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e052da commit f78da9dCopy full SHA for f78da9d
1 file changed
gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/FormatOptions.java
@@ -16,6 +16,8 @@
16
17
package com.google.gcloud.bigquery;
18
19
+import static com.google.common.base.Preconditions.checkNotNull;
20
+
21
import com.google.common.base.MoreObjects;
22
23
import java.io.Serializable;
@@ -85,7 +87,7 @@ public static FormatOptions datastoreBackup() {
85
87
* Default options for the provided format.
86
88
*/
89
public static FormatOptions of(String format) {
- if (format.equals(CSV)) {
90
+ if (checkNotNull(format).equals(CSV)) {
91
return csv();
92
}
93
return new FormatOptions(format);
0 commit comments