diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java index 381b62fe6..6dbe81707 100644 --- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java +++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/FieldValueTest.java @@ -120,6 +120,7 @@ public void testFromPb() { assertEquals(FieldValue.fromPb(TIMESTAMP_FIELD), value.getRepeatedValue().get(1)); value = FieldValue.fromPb(NULL_FIELD); assertTrue(value.isNull()); + assertEquals(null, value.getStringValueOrDefault(null)); assertEquals("defaultValue", value.getStringValueOrDefault("defaultValue")); }